diff options
author | Guido van Rossum <guido@python.org> | 1994-08-30 12:13:44 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-30 12:13:44 +0000 |
commit | f023ab0471c5b8dc9f421890481f94451b00e545 (patch) | |
tree | e8c362085c11d79f3af2f3c82c1a833a8c1594da /Lib/lib-tk/Tkinter.py | |
parent | c1be9d59e4b25a7185dc976b695532a397e838b0 (diff) | |
download | cpython-git-f023ab0471c5b8dc9f421890481f94451b00e545.tar.gz |
Dialog.py: d.num should be numeric, not string
Tkinter.py: on destroy(), remove self from master's dict of children
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 5a2e6b28e1..4b012f1988 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -679,6 +679,8 @@ class Widget(Misc, Pack, Place): return self._w def destroy(self): for c in self.children.values(): c.destroy() + if self.master.children.has_key(self._name): + del self.master.children[self._name] self.tk.call('destroy', self._w) def _do(self, name, args=()): return apply(self.tk.call, (self._w, name) + args) |