widget_string.py
10 lines
| 330 B
| text/x-python
|
PythonLexer
Jonathan Frederic
|
r14274 | from widget import Widget | |
Jonathan Frederic
|
r14256 | from IPython.utils.traitlets import Unicode, Bool, List | |
Jonathan Frederic
|
r14243 | ||
class StringWidget(Widget): | |||
target_name = Unicode('StringWidgetModel') | |||
default_view_name = Unicode('TextboxView') | |||
Jonathan Frederic
|
r14260 | _keys = ['value', 'disabled'] | |
Jonathan Frederic
|
r14243 | ||
value = Unicode() | |||
disabled = Bool(False) # Enable or disable user changes | |||