[Python-checkins] r47000 - in python/trunk: Lib/lib-tk/Tkinter.py Misc/NEWS

martin.v.loewis python-checkins at python.org
Sat Jun 17 11:25:16 CEST 2006


Author: martin.v.loewis
Date: Sat Jun 17 11:25:15 2006
New Revision: 47000
Modified:
 python/trunk/Lib/lib-tk/Tkinter.py
 python/trunk/Misc/NEWS
Log:
Patch #1494750: Destroy master after deleting children.
Modified: python/trunk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tkinter.py	(original)
+++ python/trunk/Lib/lib-tk/Tkinter.py	Sat Jun 17 11:25:15 2006
@@ -1933,9 +1933,9 @@
 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!
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sat Jun 17 11:25:15 2006
@@ -163,6 +163,9 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /