Skip to content

Commit

Permalink
Merge pull request #824 from jasongrout/interact
Browse files Browse the repository at this point in the history
PR #725 broke the fixed() functionality of @interact. This fixes it.
  • Loading branch information
minrk authored Oct 13, 2016
2 parents bb99493 + 8ab4115 commit 7386e4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ipywidgets/widgets/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,3 +507,9 @@ class fixed(HasTraits):
description = Unicode('', help="Any Python object")
def __init__(self, value, **kwargs):
super(fixed, self).__init__(value=value, **kwargs)
def get_interact_value(self):
"""Return the value for this widget which should be passed to
interactive functions. Custom widgets can change this method
to process the raw value ``self.value``.
"""
return self.value

0 comments on commit 7386e4e

Please sign in to comment.