Kaydet (Commit) 8fa42af9 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

more than one window argument.
üst 910d9a06
...@@ -783,7 +783,9 @@ class Wm: ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment