##// END OF EJS Templates
Added int widget
Added int widget

File last commit:

r14265:8195c68a
r14266:f155b0f4
Show More
float.py
10 lines | 333 B | text/x-python | PythonLexer
from base import Widget
from IPython.utils.traitlets import Unicode, Float, Bool, List
class FloatWidget(Widget):
target_name = Unicode('FloatWidgetModel')
default_view_name = Unicode('FloatTextView')
_keys = ['value', 'disabled']
value = Float(0.0)
disabled = Bool(False) # Enable or disable user changes