LabelChoice is an itcl megawidget for choosing options using a label and radiobuttons (uses blt_table to arrange the buttons in rows and columns).
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, ...
-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).
clear {} Clear the choice display. get {} Return the current value of this option. itemconfig {name args} Configure the individual buttons by name.
but_ Array(name) of button widgets. variable_ Name of text variable for tracing.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory