summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-06-17 09:25:15 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-06-17 09:25:15 (GMT)
commit92733be85e89ac0d7c1c3a4d57eff0373d9f4b5f (patch)
tree00a5be0671fc134957ea421fec8fd63d23fb925b /Lib/lib-tk
parent5ecad9ca13405d0cc4c2653435887a62e54bb673 (diff)
downloadcpython-92733be85e89ac0d7c1c3a4d57eff0373d9f4b5f.zip
cpython-92733be85e89ac0d7c1c3a4d57eff0373d9f4b5f.tar.gz
cpython-92733be85e89ac0d7c1c3a4d57eff0373d9f4b5f.tar.bz2
Patch #1494750: Destroy master after deleting children.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 3370903..2a5ecd7 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -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!