summaryrefslogtreecommitdiffstats
path: root/Tools/idle/WindowList.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-02-17 17:34:25 (GMT)
committerGuido van Rossum <guido@python.org>1999-02-17 17:34:25 (GMT)
commitbe5f2f1cb595ddbca8b1eaba2355d173c0413886 (patch)
treedf4df5aef7fab0a01e86fd081203b8ec0e257515 /Tools/idle/WindowList.py
parentd804f4eea0c9831082bd267133f6c2e8cd0101ca (diff)
downloadcpython-be5f2f1cb595ddbca8b1eaba2355d173c0413886.zip
cpython-be5f2f1cb595ddbca8b1eaba2355d173c0413886.tar.gz
cpython-be5f2f1cb595ddbca8b1eaba2355d173c0413886.tar.bz2
When deleting, call the callbacks *after* deleting the window from our list!
Diffstat (limited to 'Tools/idle/WindowList.py')
-rw-r--r--Tools/idle/WindowList.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/idle/WindowList.py b/Tools/idle/WindowList.py
index b820089..cee435d 100644
--- a/Tools/idle/WindowList.py
+++ b/Tools/idle/WindowList.py
@@ -11,12 +11,12 @@ class WindowList:
self.dict[str(window)] = window
def delete(self, window):
- window.after_idle(self.call_callbacks)
try:
del self.dict[str(window)]
except KeyError:
# Sometimes, destroy() is called twice
pass
+ self.call_callbacks()
def add_windows_to_menu(self, menu):
list = []
@@ -56,7 +56,6 @@ registry = WindowList()
add_windows_to_menu = registry.add_windows_to_menu
register_callback = registry.register_callback
unregister_callback = registry.unregister_callback
-call_callbacks = registry.call_callbacks
class ListedToplevel(Toplevel):