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

File last commit:

r14266:f155b0f4
r14266:f155b0f4
Show More
int.py
10 lines | 317 B | text/x-python | PythonLexer
from base import Widget
from IPython.utils.traitlets import Unicode, Int, Bool, List
class IntWidget(Widget):
target_name = Unicode('IntWidgetModel')
default_view_name = Unicode('IntTextView')
_keys = ['value', 'disabled']
value = Int(0)
disabled = Bool(False) # Enable or disable user changes