计划';python';收到一个X窗口系统错误
我一直在为一个小程序创建一个GUI界面,以便在数据库中存储书籍。 一般来说,一切正常,但当我点击“添加按钮”时,在操作执行后,程序关闭,我可以在终端上读取:计划';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
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(窗口、按钮、表单、表格…)
多亏了大家您找到了解决方案吗?