Go up one levelGo to Previous Go to Next

LabelMenu

This widget displays a label and a menubutton with a selector and a menu of radiobuttons. This can be used for choosing items from a list and displaying the current choice. The widget supports adding of items to the radiobutton menu and keeps track of which items are selected.

Example:

 
set w [LabelMenu .lm \ 
    -text "Test label:" \ 
    -valuefont 8x13 \ 
    -relief raised \ 
    -orient horizontal] 
pack $w -fill x -expand 1 
$w add -label "one" -command "foo one" 
$w add -label "two" -command "foo two" 
$w add -label "three" -command "foo three"

See LabelMenu(n) for more details.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory