[Tkinter-discuss] optionmenu insert

Pavel Kosina geon at post.cz
Mon May 1 18:06:24 CEST 2006


Hi,

I dont know how to dynamically add items to optionmenu.
I found this 
http://aspn.activestate.com/ASPN/docs/ActiveTcl/iwidgets/optionmenu.n.html 
insert method,  but it is not working or wrong done  by me.

w = OptionMenu(master, variable, *OPTIONS )
w.insert(1,"something")

Neither dir(w) nor print w.config() didnt help much.

Thank you

-- 
Pavel Kosina



More information about the Tkinter-discuss mailing list