From 7bcc8af83b55c9ee18834cd337f9bb23e6f2b070 2014-02-07 19:16:46 From: MinRK Date: 2014-02-07 19:16:46 Subject: [PATCH] set readout=True as default on SliderWidgets --- diff --git a/IPython/html/widgets/tests/test_interaction.py b/IPython/html/widgets/tests/test_interaction.py index ffe9316..bcb46bd 100644 --- a/IPython/html/widgets/tests/test_interaction.py +++ b/IPython/html/widgets/tests/test_interaction.py @@ -133,6 +133,7 @@ def test_single_value_float(): min= -a if a > 0 else 3*a, max= 3*a if a > 0 else -a, step=0.1, + readout=True, ) def test_single_value_int(): @@ -147,6 +148,7 @@ def test_single_value_int(): min= -a if a > 0 else 3*a, max= 3*a if a > 0 else -a, step=1, + readout=True, ) def test_list_tuple_2_int(): @@ -162,6 +164,7 @@ def test_list_tuple_2_int(): min=min, max=max, step=1, + readout=True, ) check_widgets(c, tup=d, lis=d) @@ -178,6 +181,7 @@ def test_list_tuple_3_int(): min=min, max=max, step=step, + readout=True, ) check_widgets(c, tup=d, lis=d) @@ -194,6 +198,7 @@ def test_list_tuple_2_float(): min=min, max=max, step=.1, + readout=True, ) check_widgets(c, tup=d, lis=d) @@ -212,6 +217,7 @@ def test_list_tuple_3_float(): min=min, max=max, step=step, + readout=True, ) check_widgets(c, tup=d, lis=d) diff --git a/IPython/html/widgets/widget_float.py b/IPython/html/widgets/widget_float.py index 5f9e2da..ec1868e 100644 --- a/IPython/html/widgets/widget_float.py +++ b/IPython/html/widgets/widget_float.py @@ -53,7 +53,7 @@ class FloatSliderWidget(_BoundedFloatWidget): _view_name = Unicode('FloatSliderView', sync=True) orientation = Enum([u'horizontal', u'vertical'], u'horizontal', help="Vertical or horizontal.", sync=True) - readout = Bool(False, help="Display the current value of the slider next to it.", sync=True) + readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) class FloatProgressWidget(_BoundedFloatWidget): diff --git a/IPython/html/widgets/widget_int.py b/IPython/html/widgets/widget_int.py index e1090d9..5a706bf 100644 --- a/IPython/html/widgets/widget_int.py +++ b/IPython/html/widgets/widget_int.py @@ -53,7 +53,7 @@ class IntSliderWidget(_BoundedIntWidget): _view_name = Unicode('IntSliderView', sync=True) orientation = Enum([u'horizontal', u'vertical'], u'horizontal', help="Vertical or horizontal.", sync=True) - readout = Bool(False, help="Display the current value of the slider next to it.", sync=True) + readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) class IntProgressWidget(_BoundedIntWidget):