Skip to content

Commit

Permalink
Add a value trait to Value widgets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Apr 26, 2017
1 parent 70918d3 commit b4120ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipywidgets/widgets/valuewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4120ec

Please sign in to comment.