mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #16541: tk_setPalette() now works with keyword arguments.
Added a test for tk_setPalette().
This commit is contained in:
parent
8c126d7abd
commit
4cf4f3a7c6
3 changed files with 48 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue