Tkinter - the app that wouldn't quit

Rob Hooft R.Hooft at EuroMail.com
Mon Apr 19 02:42:51 EDT 1999


I would suggest to use Pmw (http://www.dscpl.com.au/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".

Regards,

-- 
=====   R.Hooft at EuroMail.net   http://www.xs4all.nl/~hooft/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========




More information about the Python-list mailing list