You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1000 B

From: R.Hooft at (Rob Hooft)
Date: 19 Apr 1999 08:42:51 +0200
Subject: Tkinter - the app that wouldn't quit
References: <>
Message-ID: <>
X-UID: 271
I would suggest to use Pmw ( which
contains ready-to-use dialog windows.
The problem in your current program appears to be that when your
application window is destroyed, "root" is still an active window,
although it is invisible.
The WM_DELETE protocol is never called, because you're not
"destroying" the window using the window manager.
The smallest change would be to make the "Quit" button run "sys.exit"
immediately instead of "self.destroy".
===== R.Hooft at =====
===== R&D, Nonius BV, Delft =====
===== PGPid 0xFA19277D ========================== Use Linux! =========