From b4120ec570624ae4c66269ae2a8f916ec55734e9 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Wed, 26 Apr 2017 18:05:01 -0400 Subject: [PATCH] Add a value trait to Value widgets. --- ipywidgets/widgets/valuewidget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipywidgets/widgets/valuewidget.py b/ipywidgets/widgets/valuewidget.py index 28263bfce6..2385763192 100644 --- a/ipywidgets/widgets/valuewidget.py +++ b/ipywidgets/widgets/valuewidget.py @@ -4,11 +4,14 @@ """Contains the ValueWidget class""" from .widget import Widget +from traitlets import Any class ValueWidget(Widget): """Widget that can be used for the input of an interactive function""" + value = Any(help="The value of the widget.") + def get_interact_value(self): """Return the value for this widget which should be passed to interactive functions. Custom widgets can change this method