Variable Slidervariable_slider$value
_$(id)_control = grc_wxgui.slider_$(slider_type)_control(
window=self.GetWin(),
callback=self.set_$(id),
#if $label.eval
label=$label,
#else
label='$id',
#end if
value=$id,
min=$min,
max=$max,
num_steps=$num_steps,
slider_length=$slider_length,
)
#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 ifLabellabelstringDefault Valuevalue50realMinimummin0realMaximummax100realNum Stepsnum_steps100intpartSlider Length (px)slider_length200intpartSlider Typeslider_typehorizontalenumGrid Positiongrid_posgrid_pos$min <= $value <= $max$min < $max0 < $num_steps <= 1000
This block creates a variable with a slider. \
Leave the label blank to use the variable id as the label. \
The value must be a real number. \
The value must be between the minimum and the maximum. \
The number of steps must be between 0 and 1000.
Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.