]> granicus.if.org Git - python/commitdiff
(Tkinter.py): Fixed dumb typo in Misc.tk_setPalette().
authorFred Drake <fdrake@acm.org>
Fri, 4 Oct 1996 19:23:04 +0000 (19:23 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 4 Oct 1996 19:23:04 +0000 (19:23 +0000)
Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index f7aafb05b4273bb4965656c61e88a1d2cc36d182..cd341dd165b6985260ccab2b850122c2e3cc57ab 100644 (file)
@@ -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'):
index f7aafb05b4273bb4965656c61e88a1d2cc36d182..cd341dd165b6985260ccab2b850122c2e3cc57ab 100755 (executable)
@@ -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'):