From beb6bd96593401fdb71464baaec255f7c12ce365 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Fri, 4 Oct 2002 21:54:41 +0000 Subject: Josh Robb's Patch [ 617109 ] WindowList.py: fix win98 quit. --- Lib/idlelib/WindowList.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/idlelib/WindowList.py') diff --git a/Lib/idlelib/WindowList.py b/Lib/idlelib/WindowList.py index 7e05a57c032..542b738674f 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 -- cgit v1.2.3