##// END OF EJS Templates
Added support for multiple model views in one widget area.
Added support for multiple model views in one widget area.

File last commit:

r14274:7f9a6041
r14281:155c18e8
Show More
widget_int.py
10 lines | 319 B | text/x-python | PythonLexer
from widget 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