Skip to content

Commit

Permalink
Update continuous_update docs to indicate what sort of things are sub…
Browse files Browse the repository at this point in the history
…mitting a value.
  • Loading branch information
jasongrout committed Jul 27, 2017
1 parent c2ddf2f commit 21ad3c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ipywidgets/widgets/widget_float.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class FloatText(_Float):
_view_name = Unicode('FloatTextView').tag(sync=True)
_model_name = Unicode('FloatTextModel').tag(sync=True)
disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types.").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)
step = CFloat(None, allow_none=True, help="Minimum step to increment the value").tag(sync=True)


Expand All @@ -102,7 +102,7 @@ class BoundedFloatText(_BoundedFloat):
_view_name = Unicode('FloatTextView').tag(sync=True)
_model_name = Unicode('BoundedFloatTextModel').tag(sync=True)
disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types.").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)
step = CFloat(None, allow_none=True, help="Minimum step to increment the value").tag(sync=True)

@register
Expand Down
4 changes: 2 additions & 2 deletions ipywidgets/widgets/widget_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class IntText(_Int):
_view_name = Unicode('IntTextView').tag(sync=True)
_model_name = Unicode('IntTextModel').tag(sync=True)
disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types.").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)
step = CInt(1, help="Minimum step to increment the value").tag(sync=True)


Expand All @@ -139,7 +139,7 @@ class BoundedIntText(_BoundedInt):
_view_name = Unicode('IntTextView').tag(sync=True)
_model_name = Unicode('BoundedIntTextModel').tag(sync=True)
disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types.").tag(sync=True)
continuous_update = Bool(False, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)
step = CInt(1, help="Minimum step to increment the value").tag(sync=True)


Expand Down
4 changes: 2 additions & 2 deletions ipywidgets/widgets/widget_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ class Textarea(_String):
_model_name = Unicode('TextareaModel').tag(sync=True)
rows = Int(None, allow_none=True, help="The number of rows to display.").tag(sync=True)
disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
continuous_update = Bool(True, help="Update the value as the user types.").tag(sync=True)
continuous_update = Bool(True, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)

@register
class Text(_String):
"""Single line textbox widget."""
_view_name = Unicode('TextView').tag(sync=True)
_model_name = Unicode('TextModel').tag(sync=True)
disabled = Bool(False, help="Enable or disable user changes").tag(sync=True)
continuous_update = Bool(True, help="Update the value as the user types.").tag(sync=True)
continuous_update = Bool(True, help="Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away.").tag(sync=True)

def __init__(self, *args, **kwargs):
super(Text, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 21ad3c8

Please sign in to comment.