3 ###################################################
4 ##Variable Slider: a grc variable with key, value, min, max, step
5 ###################################################
8 <name>Variable Slider</name>
9 <key>variable_slider</key>
11 _$(id)_control = grc_wxgui.slider_$(slider_type)_control(
13 callback=self.set_$(id),
17 label="$id",
24 #set $grid_pos = $grid_pos.eval
26 self.Add(_$(id)_control)
28 self.GridAdd(_$(id)_control, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
37 <name>Default Value</name>
55 <name>Num Steps</name>
61 <name>Slider Type</name>
62 <key>slider_type</key>
63 <value>horizontal</value>
66 <name>Horizontal</name>
75 <name>Grid Position</name>
80 <check>$min <= $value <= $max</check>
81 <check>$min < $max</check>
82 <check>0 < $num_steps <= 1000</check>
84 This block creates a variable with a slider. \
85 Leave the label blank to use the variable id as the label. \
86 The value must be a real number. \
87 The value must be between the minimum and the maximum. \
88 The number of steps must be between 0 and 1000.
90 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.