Go up one levelGo to Previous Go to Next

LabelChoice

LabelChoice is an Itcl megawidget for choosing options using a label and a set of radiobuttons. The widget uses blt::table to arrange the buttons in rows and columns. You can specify the number of rows or columns and a list of items as options. There are methods to get a list of selected values or you can specify a command to be evaluated whenever the selected values change.

Example:

 

 
set w [LabelChoice .lc \ 
    -orient vertical \ 
    -text "Test label:" \ 
    -choice {one two three four five six seven eight \
            nine ten eleven twelve {a b c} {d e f}} \ 
    -value three \ 
    -relief groove \ 
    -anchor w \ 
    -borderwidth 3 \ 
    -command puts] 
pack $w -fill both -expand 1

See LabelChoice(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