[vtkusers] Re: Tcl/Tk Question,..

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Sep 12 10:05:33 EDT 2006


Miguel Angel Rodriguez Florido wrote:
> 	Dear vtkusers,
> 
> 	Sorry for this Tcl/Tk question, but I know that in this mailing list
> there is people that uses VTK + Tcl/Tk.
> 
> 	I have a, perhaps, stupid question, but right now I don't know how to
> do it.
> 
> 	I have a menubutton:
> 
> 	menubutton .test -text menu -menu .test.menu
> 
> 	I add two radiobuttons (for example):
> 
> 	.test.menu add radiobutton -label test1
> 	.test.menu add radiobutton -label test2
> 
> 	How can I disable one of these radiobuttons?. I mean, how can I access
> to these widgets (commands in the menubutton cascade)?.
> 

Hi Miguel,

Try

.test.menu entryconfigure [.test.menu index test1] -state disabled

or you could just set the state when you're adding the widget to the menu.

comp.lang.tcl is a helpful forum for all things Tcl/Tk


hth

Goodwin




More information about the vtkusers mailing list