##// END OF EJS Templates
Fixed stale reference to base.py -> widget.py
Fixed stale reference to base.py -> widget.py

File last commit:

r14274:7f9a6041
r14274:7f9a6041
Show More
widget_int_range.py
14 lines | 599 B | text/x-python | PythonLexer
Jonathan Frederic
Fixed stale reference to base.py -> widget.py
r14274 from widget import Widget
Jonathan Frederic
Added system that allows js to be required by widgets.
r14256 from IPython.utils.traitlets import Unicode, Int, Bool, List
Jonathan Frederic
Add int range widget
r14241
class IntRangeWidget(Widget):
target_name = Unicode('IntRangeWidgetModel')
default_view_name = Unicode('IntSliderView')
_keys = ['value', 'step', 'max', 'min', 'disabled', 'orientation']
value = Int(0)
max = Int(100) # Max value
min = Int(0) # Min value
disabled = Bool(False) # Enable or disable user changes
step = Int(1) # Minimum step that the value can take (ignored by some views)
orientation = Unicode(u'horizontal') # Vertical or horizontal (ignored by some views)