notebook/IPython/html/widgets/widget_string.py

11 lines
328 B
Python
Raw Normal View History

2013-10-18 04:24:59 +08:00
from base import Widget
from IPython.utils.traitlets import Unicode, Bool, List
2013-10-17 14:16:12 +08:00
class StringWidget(Widget):
target_name = Unicode('StringWidgetModel')
default_view_name = Unicode('TextboxView')
2013-10-19 04:32:32 +08:00
_keys = ['value', 'disabled']
2013-10-17 14:16:12 +08:00
value = Unicode()
disabled = Bool(False) # Enable or disable user changes