Roundup Robot added the comment:
New changeset 956cfe53a99f by Serhiy Storchaka in branch '3.2':
Issue #16541: tk_setPalette() now works with keyword arguments.
http://hg.python.org/cpython/rev/956cfe53a99f
New changeset 1ac028634b60 by Serhiy Storchaka in branch '3.3':
Issue #16541:
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16541
Serhiy Storchaka added the comment:
If no one objects I will commit this next year.
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16541
___
Serhiy Storchaka added the comment:
Yes, doing list(kw.items()) is safe now. Here is a patch.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file28206/tkinter_tk_setPalette.patch
___
Python tracker
New submission from Helmut Jarausch:
import tkinter as Tk
root= Tk.Tk()
root.tk_setPalette(background = 'AntiqueWhite1', foreground = 'blue')
but python-3.3:0+ (3.3:27cb1a3d57c8+) gives
Traceback (most recent call last):
File Matr_Select.py, line 174, in module
Serhiy Storchaka added the comment:
There are two ways to fix this issue:
1. Fix tk_setPalette() (just wrap kw.items() with list() or tuple()).
2. Fix C implementation of _flatten() for work with any iterators.
--
nosy: +gpolo, serhiy.storchaka
stage: - needs patch
type: compile error
Guilherme Polo added the comment:
If doing list(kw.items()) works, I'm fine with that. If it does not, then
ttk._format_optdict(kw) should.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16541