From 8fa42af978f1494d0475f6ceb9af38923e024030 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 20 Oct 1999 12:29:56 +0000 Subject: Fix PR#107: wm_colormapwindows() did the wrong thing when presented more than one window argument. --- Lib/lib-tk/Tkinter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v0.12