Kaydet (Commit) 92733be8 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #1494750: Destroy master after deleting children.

üst 5ecad9ca
......@@ -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!
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment