widget fix?

This commit is contained in:
Jason Goad 2014-09-27 12:14:21 -07:00 committed by Thomas Kluyver
parent 6c55690994
commit 7bcced9da0

View File

@ -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