diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-10-04 21:54:41 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-10-04 21:54:41 (GMT) |
commit | beb6bd96593401fdb71464baaec255f7c12ce365 (patch) | |
tree | 23ae0fb331bb6973ab538849ca320a17778d112d /Lib/idlelib | |
parent | a1dee069831c5551dc28d90d495ab5de967c17d5 (diff) | |
download | cpython-beb6bd96593401fdb71464baaec255f7c12ce365.zip cpython-beb6bd96593401fdb71464baaec255f7c12ce365.tar.gz cpython-beb6bd96593401fdb71464baaec255f7c12ce365.tar.bz2 |
Josh Robb's Patch
[ 617109 ] WindowList.py: fix win98 quit.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/WindowList.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/WindowList.py b/Lib/idlelib/WindowList.py index 7e05a57..542b738 100644 --- a/Lib/idlelib/WindowList.py +++ b/Lib/idlelib/WindowList.py @@ -67,6 +67,10 @@ class ListedToplevel(Toplevel): def destroy(self): registry.delete(self) Toplevel.destroy(self) + # If this is Idle's last window then quit the mainloop + # (Needed for clean exit on Windows 98) + if not registry.dict: + self.quit() def get_title(self): # Subclass can override |