Patch #1494750: Destroy master after deleting children.

This commit is contained in:
Martin v. Löwis 2006-06-17 09:25:15 +00:00
parent 5ecad9ca13
commit 92733be85e
2 changed files with 4 additions and 1 deletions

View File

@ -1933,9 +1933,9 @@ class BaseWidget(Misc):
def destroy(self):
"""Destroy this and all descendants widgets."""
for c in self.children.values(): c.destroy()
self.tk.call('destroy', self._w)
if self.master.children.has_key(self._name):
del self.master.children[self._name]
self.tk.call('destroy', self._w)
Misc.destroy(self)
def _do(self, name, args=()):
# XXX Obsolete -- better use self.tk.call directly!

View File

@ -163,6 +163,9 @@ Extension Modules
Library
-------
- Patch #1494750: Destroy master after deleting children in
Tkinter.BaseWidget.
- Patch #1096231: Add ``default`` argument to Tkinter.Wm.wm_iconbitmap.
- Patch #763580: Add name and value arguments to Tkinter variable