From 3faf9b4d4808d831351a8fb65f7e69f09d9db452 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 4 Oct 1996 19:23:04 +0000 Subject: [PATCH] (Tkinter.py): Fixed dumb typo in Misc.tk_setPalette(). --- Lib/lib-tk/Tkinter.py | 4 ++-- Lib/tkinter/Tkinter.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index f7aafb05b42..cd341dd165b 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 f7aafb05b42..cd341dd165b 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'):