##// END OF EJS Templates
Add string widget
Add string widget

File last commit:

r14243:b03fd66f
r14243:b03fd66f
Show More
widget.py
13 lines | 402 B | text/x-python | PythonLexer
Jonathan Frederic
Add string widget
r14243 import os
from ..widget import Widget
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