notebook/IPython/html/widgets/widget_bool.py
2014-01-16 10:56:00 +00:00

12 lines
410 B
Python

from base import Widget
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