summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/tix.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-01-10 12:15:23 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-01-10 12:15:23 (GMT)
commit21027e608a2b1b008231105d6eaf0a04078d395f (patch)
tree2894fd09e3fdda79d301699dd094d4714b3f76be /Lib/tkinter/tix.py
parentb5e5da4518de753a25f5b7881072cb02e00b8d9b (diff)
downloadcpython-21027e608a2b1b008231105d6eaf0a04078d395f.zip
cpython-21027e608a2b1b008231105d6eaf0a04078d395f.tar.gz
cpython-21027e608a2b1b008231105d6eaf0a04078d395f.tar.bz2
Fixed 2to3 issue on tix module.
Diffstat (limited to 'Lib/tkinter/tix.py')
-rwxr-xr-xLib/tkinter/tix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py
index eb566e2..3bfa539 100755
--- a/Lib/tkinter/tix.py
+++ b/Lib/tkinter/tix.py
@@ -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: