本をデータベースに保存するための小さなプログラム用の 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 (ウィンドウ、ボタン、フォーム、テーブルなど) を作成しています。