mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
11 lines
317 B
Python
11 lines
317 B
Python
from base import Widget
|
|
from IPython.utils.traitlets import Unicode, Int, Bool, List
|
|
|
|
class IntWidget(Widget):
|
|
target_name = Unicode('IntWidgetModel')
|
|
default_view_name = Unicode('IntTextView')
|
|
_keys = ['value', 'disabled']
|
|
|
|
value = Int(0)
|
|
disabled = Bool(False) # Enable or disable user changes
|