mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Validate initial value of "_BoundedFloatWidget".
This commit is contained in:
parent
8c60671cb8
commit
694f33e2ba
@ -33,6 +33,7 @@ class _BoundedFloatWidget(_FloatWidget):
|
||||
def __init__(self, *pargs, **kwargs):
|
||||
"""Constructor"""
|
||||
DOMWidget.__init__(self, *pargs, **kwargs)
|
||||
self._validate('value', None, self.value)
|
||||
self.on_trait_change(self._validate, ['value', 'min', 'max'])
|
||||
|
||||
def _validate(self, name, old, new):
|
||||
|
Loading…
Reference in New Issue
Block a user