summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-10-20 12:29:56 (GMT)
committerGuido van Rossum <guido@python.org>1999-10-20 12:29:56 (GMT)
commit8fa42af978f1494d0475f6ceb9af38923e024030 (patch)
tree628093686e3f94fe1fb4b765fe3f89468342d981 /Lib/lib-tk/Tkinter.py
parent910d9a0634e374466eae5be618fc7347af6055f9 (diff)
downloadcpython-8fa42af978f1494d0475f6ceb9af38923e024030.zip
cpython-8fa42af978f1494d0475f6ceb9af38923e024030.tar.gz
cpython-8fa42af978f1494d0475f6ceb9af38923e024030.tar.bz2
Fix PR#107: wm_colormapwindows() did the wrong thing when presented
more than one window argument.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index c687669..30cc982 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -783,7 +783,9 @@ class Wm:
return self.tk.call('wm', 'client', self._w, name)
client = wm_client
def wm_colormapwindows(self, *wlist):
- args = ('wm', 'colormapwindows', self._w) + _flatten(wlist)
+ if len(wlist) > 1:
+ wlist = (wlist,) # Tk needs a list of windows here
+ args = ('wm', 'colormapwindows', self._w) + wlist
return map(self._nametowidget, self.tk.call(args))
colormapwindows = wm_colormapwindows
def wm_command(self, value=None):