]> granicus.if.org Git - python/commitdiff
Fixed 2to3 issue on tix module.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 10 Jan 2009 12:15:23 +0000 (12:15 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 10 Jan 2009 12:15:23 +0000 (12:15 +0000)
Lib/tkinter/tix.py

index eb566e2080cdc32d474b6b83a0b9d6d48cd0ac77..3bfa539475ef4d6c2b7ed26ac24ba68d4f3d4769 100755 (executable)
@@ -293,7 +293,7 @@ class TixWidget(tkinter.Widget):
         else:
             static_options = ['options']
 
-        for k,v in cnf.items()[:]:
+        for k,v in list(cnf.items()):
             if k in static_options:
                 extra = extra + ('-' + k, v)
                 del cnf[k]
@@ -448,7 +448,7 @@ class TixSubWidget(TixWidget):
         # we must be careful not to destroy the frame widget since this
         # also destroys the parent NoteBook thus leading to an exception
         # in Tkinter when it finally calls Tcl to destroy the NoteBook
-        for c in self.children.values(): c.destroy()
+        for c in list(self.children.values()): c.destroy()
         if self._name in self.master.children:
             del self.master.children[self._name]
         if self._name in self.master.subwidget_list: