def Slider ( name, tooltip = '', low = -1.0, high = 1.0, width = 140, label = None ): """ Returns an Item for a value using a RangeSliderEditor. """ result = Item( name, width = -width, editor = RangeSliderEditor( low = low, high = high, increment = 0.01, body_style = 25 ), tooltip = tooltip ) if label is not None: result.label = label return result
def Scrubber ( name, tooltip = '', increment = 1, low = 0.0, high = 0.0, width = 40, label = None ): """ Returns an Item for a value using a ScrubberEditor. """ result = Item( name, width = -width, editor = ScrubberEditor( low = low, high = high, increment = increment ), tooltip = tooltip, item_theme = '#themes:ScrubberEditor' ) if label is not None: result.label = label return result