##// END OF EJS Templates
Updated imports to reflect class move
Updated imports to reflect class move

File last commit:

r14250:e9b4d108
r14250:e9b4d108
Show More
string.py
13 lines | 398 B | text/x-python | PythonLexer
Jonathan Frederic
Add string widget
r14243 import os
Jonathan Frederic
Updated imports to reflect class move
r14250 from base import Widget
Jonathan Frederic
Add string widget
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