##// END OF EJS Templates
Fixed glitch when widgetarea wouldn't get completely hidden upon re-execution
Fixed glitch when widgetarea wouldn't get completely hidden upon re-execution

File last commit:

r14240:545d8877
r14248:94c28bc6
Show More
widget.py
17 lines | 686 B | text/x-python | PythonLexer
Jonathan Frederic
Add float range widget
r14240 import os
from ..widget import Widget
from IPython.utils.traitlets import Unicode, Float, Bool
from IPython.utils.javascript import display_all_js
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)