python3.3 - tk_setPalette bug?

Helmut Jarausch jarausch at skynet.be
Fri Nov 23 08:15:37 EST 2012


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?

Thanks,
Helmut.



More information about the Python-list mailing list