qtgui_range (cr)variable_crfa_qtgui_range[crfa]import crfafrom crfa.qtgui_range import qtgui_range, RangeWidgetself.$(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))Labellabelstring#if $label() then 'none' else 'part'#TyperangeType"float"enumpartDefault Valuevalue50$rangeType.typeStartstart0$rangeType.typeStopstop100$rangeType.typeStepstep1$rangeType.typeWidgetwidgetcounter_sliderenumpartOrientationorientQt.Horizontalenum#if $widget() == "slider" then 'part' else 'all'#Minimum Lengthmin_len200intpartGUI Hintgui_hintgui_hintpart$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.