Josh Robb's Patch

[ 617109 ] WindowList.py: fix win98 quit.
This commit is contained in:
Kurt B. Kaiser 2002-10-04 21:54:41 +00:00
parent a1dee06983
commit beb6bd9659
1 changed files with 4 additions and 0 deletions

View File

@ -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