mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Josh Robb's Patch
[ 617109 ] WindowList.py: fix win98 quit.
This commit is contained in:
parent
a1dee06983
commit
beb6bd9659
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue