Variable Chooser variable_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 if Label label string Value Index value_index 0 int Choices choices [1, 2, 3] raw Labels labels [] raw Chooser Type chooser_type drop_down enum Grid Position grid_pos grid_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.