Fix PR#107: wm_colormapwindows() did the wrong thing when presented
more than one window argument.
This commit is contained in:
parent
910d9a0634
commit
8fa42af978
|
@ -783,7 +783,9 @@ class Wm:
|
||||||
return self.tk.call('wm', 'client', self._w, name)
|
return self.tk.call('wm', 'client', self._w, name)
|
||||||
client = wm_client
|
client = wm_client
|
||||||
def wm_colormapwindows(self, *wlist):
|
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))
|
return map(self._nametowidget, self.tk.call(args))
|
||||||
colormapwindows = wm_colormapwindows
|
colormapwindows = wm_colormapwindows
|
||||||
def wm_command(self, value=None):
|
def wm_command(self, value=None):
|
||||||
|
|
Loading…
Reference in New Issue