Fix PR#107: wm_colormapwindows() did the wrong thing when presented

more than one window argument.
This commit is contained in:
Guido van Rossum 1999-10-20 12:29:56 +00:00
parent 910d9a0634
commit 8fa42af978
1 changed files with 3 additions and 1 deletions

View 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):