[issue16541] tk_setPalette doesn't accept keyword parameters
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: tk_setPalette() now works with keyword arguments. http://hg.python.org/cpython/rev/1ac028634b60 New changeset 589e6175f037 by Serhiy Storchaka in branch 'default': Issue #16541: tk_setPalette() now works with keyword arguments. http://hg.python.org/cpython/rev/589e6175f037 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
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 rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
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 root.tk_setPalette(background = 'AntiqueWhite1', foreground = 'blue') File /usr/lib64/python3.3/tkinter/__init__.py, line 390, in tk_setPalette + _flatten(args) + _flatten(kw.items())) TypeError: argument must be sequence Thanks for looking into it, Helmut. -- components: Tkinter messages: 176193 nosy: HJarausch priority: normal severity: normal status: open title: tk_setPalette doesn't accept keyword parameters type: compile error versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
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 - behavior versions: +Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com