##// END OF EJS Templates
Added toggle button view
Added toggle button view

File last commit:

r14260:3ca03407
r14262:524f98d2
Show More
float_range.py
14 lines | 625 B | text/x-python | PythonLexer
Jonathan Frederic
Updated imports to reflect class move
r14250 from base import Widget
Jonathan Frederic
Added system that allows js to be required by widgets.
r14256 from IPython.utils.traitlets import Unicode, Float, Bool, List
Jonathan Frederic
Add float range widget
r14240
class FloatRangeWidget(Widget):
target_name = Unicode('FloatRangeWidgetModel')
default_view_name = Unicode('FloatSliderView')
_keys = ['value', 'step', 'max', 'min', 'disabled', 'orientation']
value = Float(0.0)
max = Float(100.0) # Max value
min = Float(0.0) # Min value
disabled = Bool(False) # Enable or disable user changes
step = Float(0.1) # Minimum step that the value can take (ignored by some views)
orientation = Unicode(u'horizontal') # Vertical or horizontal (ignored by some views)