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