notebook/IPython/html/widgets/widget_string.py
2014-01-16 10:56:00 +00:00

11 lines
328 B
Python

from base import Widget
from IPython.utils.traitlets import Unicode, Bool, List
class StringWidget(Widget):
target_name = Unicode('StringWidgetModel')
default_view_name = Unicode('TextboxView')
_keys = ['value', 'disabled']
value = Unicode()
disabled = Bool(False) # Enable or disable user changes