##// END OF EJS Templates
Fixed stale reference to base.py -> widget.py
Fixed stale reference to base.py -> widget.py

File last commit:

r14274:7f9a6041
r14274:7f9a6041
Show More
widget_bool.py
11 lines | 412 B | text/x-python | PythonLexer
Jonathan Frederic
Fixed stale reference to base.py -> widget.py
r14274 from widget import Widget
Jonathan Frederic
Added boolean widget
r14259 from IPython.utils.traitlets import Unicode, Bool, List
class BoolWidget(Widget):
target_name = Unicode('BoolWidgetModel')
default_view_name = Unicode('CheckboxView')
_keys = ['value', 'description', 'disabled']
value = Bool(False)
description = Unicode('') # Description of the boolean (label).
disabled = Bool(False) # Enable or disable user changes