strange option menu behavior

Heiner Litz heinerlitz at gmx.de
Tue Oct 8 06:15:48 EDT 2002


HI there!

I implemented a option menu like this:

    var=Tkinter.StringVar()
    var.set("adjective")
    option=Tkinter.OptionMenu(framenewentry3, var, "adjective", "adverb",
"compound", "conjunction")
    option.pack()

If I use this code in the command line it does do the trick, BUT if I use
this code in my program the options are not shown! You can select one and
the var also stores the value, but there is no visualisation of the variable
content. There is just a button with no text.

thx!






More information about the Python-list mailing list