##// END OF EJS Templates
set readout=True as default on SliderWidgets
MinRK -
Show More
@@ -133,6 +133,7 b' def test_single_value_float():'
133 133 min= -a if a > 0 else 3*a,
134 134 max= 3*a if a > 0 else -a,
135 135 step=0.1,
136 readout=True,
136 137 )
137 138
138 139 def test_single_value_int():
@@ -147,6 +148,7 b' def test_single_value_int():'
147 148 min= -a if a > 0 else 3*a,
148 149 max= 3*a if a > 0 else -a,
149 150 step=1,
151 readout=True,
150 152 )
151 153
152 154 def test_list_tuple_2_int():
@@ -162,6 +164,7 b' def test_list_tuple_2_int():'
162 164 min=min,
163 165 max=max,
164 166 step=1,
167 readout=True,
165 168 )
166 169 check_widgets(c, tup=d, lis=d)
167 170
@@ -178,6 +181,7 b' def test_list_tuple_3_int():'
178 181 min=min,
179 182 max=max,
180 183 step=step,
184 readout=True,
181 185 )
182 186 check_widgets(c, tup=d, lis=d)
183 187
@@ -194,6 +198,7 b' def test_list_tuple_2_float():'
194 198 min=min,
195 199 max=max,
196 200 step=.1,
201 readout=True,
197 202 )
198 203 check_widgets(c, tup=d, lis=d)
199 204
@@ -212,6 +217,7 b' def test_list_tuple_3_float():'
212 217 min=min,
213 218 max=max,
214 219 step=step,
220 readout=True,
215 221 )
216 222 check_widgets(c, tup=d, lis=d)
217 223
@@ -53,7 +53,7 b' class FloatSliderWidget(_BoundedFloatWidget):'
53 53 _view_name = Unicode('FloatSliderView', sync=True)
54 54 orientation = Enum([u'horizontal', u'vertical'], u'horizontal',
55 55 help="Vertical or horizontal.", sync=True)
56 readout = Bool(False, help="Display the current value of the slider next to it.", sync=True)
56 readout = Bool(True, help="Display the current value of the slider next to it.", sync=True)
57 57
58 58
59 59 class FloatProgressWidget(_BoundedFloatWidget):
@@ -53,7 +53,7 b' class IntSliderWidget(_BoundedIntWidget):'
53 53 _view_name = Unicode('IntSliderView', sync=True)
54 54 orientation = Enum([u'horizontal', u'vertical'], u'horizontal',
55 55 help="Vertical or horizontal.", sync=True)
56 readout = Bool(False, help="Display the current value of the slider next to it.", sync=True)
56 readout = Bool(True, help="Display the current value of the slider next to it.", sync=True)
57 57
58 58
59 59 class IntProgressWidget(_BoundedIntWidget):
General Comments 0
You need to be logged in to leave comments. Login now