string.py
13 lines
| 398 B
| text/x-python
|
PythonLexer
Jonathan Frederic
|
r14243 | import os | |
Jonathan Frederic
|
r14250 | from base import Widget | |
Jonathan Frederic
|
r14243 | from IPython.utils.traitlets import Unicode, Bool | |
from IPython.utils.javascript import display_all_js | |||
class StringWidget(Widget): | |||
target_name = Unicode('StringWidgetModel') | |||
default_view_name = Unicode('TextboxView') | |||
_keys = ['value', 'row_count', 'disabled'] | |||
value = Unicode() | |||
disabled = Bool(False) # Enable or disable user changes | |||