Variable Slidervariable_sliderfrom grc_gnuradio.wxgui import forms$value
self['$id'] = $id
self.subscribe('$id', self.set_$(id))
self._$(id)_sizer = wx.BoxSizer(wx.VERTICAL)
forms.text_box(
parent=self.GetWin(),
sizer=self._$(id)_sizer,
ps=self,
key='$id',
#if $label()
label=$label,
#else
label='$id',
#end if
converter=forms.$(converver)(),
proportion=0,
)
forms.slider(
parent=self.GetWin(),
sizer=self._$(id)_sizer,
ps=self,
key='$id',
minimum=$min,
maximum=$max,
num_steps=$num_steps,
style=$style,
cast=$(converver.slider_cast),
proportion=1,
)
#set $grid_pos = $grid_pos()
#if not grid_pos
self.Add(self._$(id)_sizer)
#else
self.GridAdd(self._$(id)_sizer, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
#end ifLabellabelstring#if $label() then 'none' else 'part'#Default Valuevalue50realMinimummin0realMaximummax100realNum Stepsnum_steps100intpartStylestylewx.SL_HORIZONTALenumpartConverterconververfloat_converterenumGrid 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.