Tkinter widgets: Write options *and* option tags dynamically from dictionary?

Johannes Eble skywalkerpackage at hotmail.com
Sun Feb 3 15:07:10 EST 2002


Hello Laura and Eric,

thanks very much for your answer, it has helped me a lot :)

Laura, I don't think,

widget=widgetType(master, **mydict)

is necessary. I have tried

widget=widgetType(master, mydict)

with mydict={'text':'hello', 'relief':'sunken'}. It worked without the
two stars.
Aren't the two stars just necessary for function calls with variable
length key parameters?


ByeBye

Johannes







More information about the Python-list mailing list