Is this a Dumb Thing to do?

Jonathan Polley
Mon Oct 22 20:57:27 CEST 2001


OK,

    What I am trying to do is dynamically change the contents of a
Tkinter.OptionMenu.  After doing some research I couldn't figure out
how, until I looked at the __init__ method on the class and had a wicked
thought.  Create an instance of Tkinter.OptionMenu and then call its
__init__ method to change the contents of the list!

    It worked, but is it by accident?  Did I do a "Very Bad Thing(tm)?"
I'm sure there is a better way to change the list contents, but how?

Thanks!

Jonathan Polley

jwpolley(at)rockwellcollins(dot)com





More information about the Python-list mailing list