##// END OF EJS Templates
Changed parent/child api widgets
Changed parent/child api widgets

File last commit:

r14274:7f9a6041
r14280:f8192995
Show More
widget_float_range.py
14 lines | 627 B | text/x-python | PythonLexer
from widget import Widget
from IPython.utils.traitlets import Unicode, Float, Bool, List
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)