qtgui_range (cr) variable_crfa_qtgui_range [crfa] import crfa from crfa.qtgui_range import qtgui_range, RangeWidget self.$(id) = $(id) = $value #set $win = 'self._%s_win'%$id #set $range = 'self.%s_range'%$id #if not $label() #set $label = '"%s"'%$id #end if $(range) = qtgui_range($start, $stop, $step, $value, $min_len) $(win) = RangeWidget($range, self.set_$(id), $label, "$widget", $rangeType) $(gui_hint()($win)) Label label string #if $label() then 'none' else 'part'# Type rangeType "float" enum part Default Value value 50 $rangeType.type Start start 0 $rangeType.type Stop stop 100 $rangeType.type Step step 1 $rangeType.type Widget widget counter_slider enum part Orientation orient Qt.Horizontal enum #if $widget() == "slider" then 'part' else 'all'# Minimum Length min_len 200 int part GUI Hint gui_hint gui_hint part $start <= $value <= $stop $start < $stop 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 start and the stop. The GUI hint can be used to position the widget within the application. \ The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. \ Both the tab specification and the grid position are optional.