From: Fred Drake Date: Fri, 4 Oct 1996 19:23:04 +0000 (+0000) Subject: (Tkinter.py): Fixed dumb typo in Misc.tk_setPalette(). X-Git-Tag: v1.4~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3faf9b4d4808d831351a8fb65f7e69f09d9db452;p=python (Tkinter.py): Fixed dumb typo in Misc.tk_setPalette(). --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index f7aafb05b4..cd341dd165 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -141,8 +141,8 @@ class Misc: def tk_bisque(self): self.tk.call('tk_bisque') def tk_setPalette(self, *args, **kw): - apply(self.tk.call, 'tk_setPalette', - _flatten(args) + _flatten(kw.items())) + apply(self.tk.call, ('tk_setPalette',) + + _flatten(args) + _flatten(kw.items())) def tk_menuBar(self, *args): pass # obsolete since Tk 4.0 def wait_variable(self, name='PY_VAR'): diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index f7aafb05b4..cd341dd165 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -141,8 +141,8 @@ class Misc: def tk_bisque(self): self.tk.call('tk_bisque') def tk_setPalette(self, *args, **kw): - apply(self.tk.call, 'tk_setPalette', - _flatten(args) + _flatten(kw.items())) + apply(self.tk.call, ('tk_setPalette',) + + _flatten(args) + _flatten(kw.items())) def tk_menuBar(self, *args): pass # obsolete since Tk 4.0 def wait_variable(self, name='PY_VAR'):