Issue #16541: tk_setPalette() now works with keyword arguments.

Added a test for tk_setPalette().
This commit is contained in:
Serhiy Storchaka 2013-01-02 00:03:58 +02:00
parent 8c126d7abd
commit 4cf4f3a7c6
3 changed files with 48 additions and 1 deletions

View file

@ -380,7 +380,7 @@ class Misc:
background, highlightColor, selectForeground,
disabledForeground, insertBackground, troughColor."""
self.tk.call(('tk_setPalette',)
+ _flatten(args) + _flatten(kw.items()))
+ _flatten(args) + _flatten(list(kw.items())))
def tk_menuBar(self, *args):
"""Do not use. Needed in Tk 3.6 and earlier."""
pass # obsolete since Tk 4.0