mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
11 lines
328 B
Python
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
|
|
|