mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
widget fix?
This commit is contained in:
parent
6c55690994
commit
7bcced9da0
@ -26,6 +26,10 @@ class _Int(DOMWidget):
|
||||
disabled = Bool(False, help="Enable or disable user changes", sync=True)
|
||||
description = Unicode(help="Description of the value this widget represents", sync=True)
|
||||
|
||||
def __init__(self, value=None, **kwargs):
|
||||
if value is not None:
|
||||
kwargs['value'] = value
|
||||
super(_Int, self).__init__(**kwargs)
|
||||
|
||||
class _BoundedInt(_Int):
|
||||
"""Base class used to create widgets that represent a int that is bounded
|
||||
|
Loading…
Reference in New Issue
Block a user