Author: guido.van.rossum
Date: Wed Jul 11 14:36:26 2007
New Revision: 56263
Modified:
python/branches/p3yk/Lib/lib-tk/Tkinter.py
Log:
Patch 1724999 by Ali Gholami Rudi -- avoid complaints about dict size
change during iter in destroy call.
Modified: python/branches/p3yk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/branches/p3yk/Lib/lib-tk/Tkinter.py (original)
+++ python/branches/p3yk/Lib/lib-tk/Tkinter.py Wed Jul 11 14:36:26 2007
@@ -1931,7 +1931,7 @@
k.configure(self, v)
def destroy(self):
"""Destroy this and all descendants widgets."""
- for c in self.children.values(): c.destroy()
+ for c in list(self.children.values()): c.destroy()
self.tk.call('destroy', self._w)
if self._name in self.master.children:
del self.master.children[self._name]
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins