Variable Chooservariable_chooser$(choices)[$value_index]
_$(id)_control = grc_wxgui.$(chooser_type)_control(
window=self.GetWin(),
callback=self.set_$(id),
#if $label.eval
label=$label,
#else
label='$id',
#end if
index=$value_index,
choices=$choices,
labels=$labels,
)
#set $grid_pos = $grid_pos.eval
#if not grid_pos
self.Add(_$(id)_control)
#else
self.GridAdd(_$(id)_control, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
#end ifLabellabelstringValue Indexvalue_index0intChoiceschoices[1, 2, 3]rawLabelslabels[]rawChooser Typechooser_typedrop_downenumGrid Positiongrid_posgrid_pos$value_index in range(len($choices))not $labels or len($labels) == len($choices)
This block creates a variable with a drop down, radio buttons, or a button. \
Leave the label blank to use the variable id as the label. \
The value index is the index of a particular choice, \
which defines the default choice when the flow graph starts. \
The choices must be a list of possible values. \
Leave labels empty to use the choices as the labels.
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.