31 lines
1000 B
Plaintext
31 lines
1000 B
Plaintext
From: R.Hooft at EuroMail.com (Rob Hooft)
|
|
Date: 19 Apr 1999 08:42:51 +0200
|
|
Subject: Tkinter - the app that wouldn't quit
|
|
References: <19990416144831.A1548022@vislab.epa.gov>
|
|
Message-ID: <m3pv51xg9g.fsf@devel.no.rwd.dinet>
|
|
X-UID: 271
|
|
|
|
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! =========
|
|
|
|
|
|
|
|
|