Variable Slider variable_slider from 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 if Label label string #if $label() then 'none' else 'part'# Default Value value 50 real Minimum min 0 real Maximum max 100 real Num Steps num_steps 100 int part Style style wx.SL_HORIZONTAL enum part Converter converver float_converter enum Grid Position grid_pos grid_pos $min <= $value <= $max $min < $max 0 < $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.