From: Guido van Rossum Date: Wed, 20 Oct 1999 12:29:56 +0000 (+0000) Subject: Fix PR#107: wm_colormapwindows() did the wrong thing when presented X-Git-Tag: v1.6a1~809 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fa42af978f1494d0475f6ceb9af38923e024030;p=python Fix PR#107: wm_colormapwindows() did the wrong thing when presented more than one window argument. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index c68766960d..30cc982552 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):