I am creating a GUI for a small program for storing books in a database. As a rule, everything is fine, but when I click "add buttom", after the action has been completed, the program closes, and I can read on the terminal:
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.)
I really donβt understand what kind of mistake this is. I use Tkinter libraries correctly to create a graphical interface (windows, buttons, forms, tables ...) Thanks to all
source share