]> granicus.if.org Git - python/commitdiff
Fix PR#107: wm_colormapwindows() did the wrong thing when presented
authorGuido van Rossum <guido@python.org>
Wed, 20 Oct 1999 12:29:56 +0000 (12:29 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 20 Oct 1999 12:29:56 +0000 (12:29 +0000)
more than one window argument.

Lib/lib-tk/Tkinter.py

index c68766960d4e5db4a15b4313fd48ebb51f3a7039..30cc982552cb003d65dd63a3773a09d267708535 100644 (file)
@@ -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):