python3.3 - tk_setPalette bug?

Peter Otten __peter__ at web.de
Fri Nov 23 15:23:54 CET 2012


Helmut Jarausch wrote:

> Hi,
> 
> AFAIK, this should work:
> 
> import tkinter as Tk
> root= Tk.Tk()
> root.tk_setPalette(background = 'AntiqueWhite1', foreground = 'blue')
> 
> but python-3.3:0e4574595674+ 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
> 
> 
> What am I missing?

Nothing, as far as I can tell. Please file a bug report on 
<http://bugs.python.org>.

For now you can work around the bug with

root.tk_setPalette("background", 'AntiqueWhite1', "foreground", 'blue')




More information about the Python-list mailing list