Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
计划';python';收到一个X窗口系统错误_Python_User Interface - Fatal编程技术网

计划';python';收到一个X窗口系统错误

计划';python';收到一个X窗口系统错误,python,user-interface,Python,User Interface,我一直在为一个小程序创建一个GUI界面,以便在数据库中存储书籍。 一般来说,一切正常,但当我点击“添加按钮”时,在操作执行后,程序关闭,我可以在终端上读取: The program 'python' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: seria

我一直在为一个小程序创建一个GUI界面,以便在数据库中存储书籍。 一般来说,一切正常,但当我点击“添加按钮”时,在操作执行后,程序关闭,我可以在终端上读取:

The program 'python' received an X Window System error.

This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 4916 error_code 3 request_code 15 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
我真的不明白这是什么样的错误。我正确地使用Tkinter库来创建GUI(窗口、按钮、表单、表格…)
多亏了大家

您找到了解决方案吗?