mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
15 lines
488 B
Python
15 lines
488 B
Python
import os
|
|
|
|
from base import Widget
|
|
from IPython.utils.traitlets import Unicode, Bool, List
|
|
|
|
class BoolWidget(Widget):
|
|
target_name = Unicode('BoolWidgetModel')
|
|
default_view_name = Unicode('CheckboxView')
|
|
js_requirements = List(["static/notebook/js/widgets/bool.js"])
|
|
_keys = ['value', 'description', 'disabled']
|
|
|
|
value = Bool(False)
|
|
description = Unicode('') # Description of the boolean (label).
|
|
disabled = Bool(False) # Enable or disable user changes
|
|
|