Go up one levelGo to Previous Go to Next

LabelChoice(n)

NAME

 
 LabelChoice - Widget for choosing options using a label and radiobuttons

NAMESPACE

 
 util

PARENT CLASS

 
 util::LabelWidget

SYNOPSIS

 
 LabelChoice <path> ?options?

DESCRIPTION

 
 LabelChoice is an itcl megawidget for choosing options using a label
 and radiobuttons (uses blt_table to arrange the buttons in rows and
 columns).


ITK COMPONENTS

 
 table
        Tk frame containing radiobuttons.

 choice$i
        One Tk component is created for each item in the list given by the
        -choice argument. The component names are choice0, choice1, ...

STANDARD OPTIONS

 
 -anchor -background -borderwidth -foreground -relief -state
 -valuefont -valuewidth

WIDGET OPTIONS

 
 -choice
        List of choices.

 -cols
        Max number of columns to display (0 for unlimited) note: specify
        either -rows OR -cols, but not both.

 -command
        Command to run when value is changed (new value is appended).

 -orient
        Widget orientation: horizontal or vertical.

 -rows
        Max number of rows to display (0 for unlimited) note: specify
        either -rows OR -cols, but not both.

 -value
        Value to display.

 -variable
        Name of global variable to set (defaults to $w_.choice).

PUBLIC METHODS

 
 clear {}
        Clear the choice display.

 get {}
        Return the current value of this option.

 itemconfig {name args}
        Configure the individual buttons by name.

PROTECTED METHODS

 
 do_layout {}
        Layout the choices according to the options.

PROTECTED VARIABLES

 
 but_
        Array(name) of button widgets.

 variable_
        Name of text variable for tracing.

SEE ALSO

 
 LabelWidget(n)

 


- - - - - -
Last change: 07 May 99

 


Go up one levelGo to Previous Go to Next

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