Displaying 1 result from an estimated 1 matches for "editmenu".
Did you mean:
editme
2007 Jan 22
0
How to disable existing menus in tcltk?
...or tkentryconfigure contains the state as one of its options.
Here's a snip of the code. How could I disable, for example, the Edit
data menu choise after already creating the menu (I want it to be active
initially)?
gui<-tktoplevel()
topMenu<-tkmenu(gui)
tkconfigure(gui,menu=topMenu)
editMenu<-tkmenu(topMenu, tearoff=FALSE)
tkadd(editMenu, "command", label="Edit data", command=function() editData())
tkadd(editMenu, "command", label="Preferences", command=function() editPref())
tkadd(topMenu, "cascade", label="Edit", menu=edi...