Also like the Enum idea.


On Wed, Jan 15, 2014 at 8:38 PM, Jason Grout <notifications@github.com>wrote:

> In IPython/html/widgets/widget_float_range.py:
>
> > +#-----------------------------------------------------------------------------
> > +# Classes
> > +#-----------------------------------------------------------------------------
> > +class BoundedFloatTextWidget(DOMWidget):
> > +    view_name = Unicode('FloatTextView', sync=True)
> > +    value = Float(0.0, help="Float value", sync=True)
> > +    max = Float(100.0, help="Max value", sync=True)
> > +    min = Float(0.0, help="Min value", sync=True)
> > +    disabled = Bool(False, help="Enable or disable user changes", sync=True)
> > +    step = Float(0.1, help="Minimum step that the value can take (ignored by some views)", sync=True)
> > +    description = Unicode(help="Description of the value this widget represents", sync=True)
> > +
> > +
> > +class FloatSliderWidget(BoundedFloatTextWidget):
> > +    view_name = Unicode('FloatSliderView', sync=True)
> > +    orientation = Unicode(u'horizontal', help="Vertical or horizontal.", sync=True)
>
> Should this be an Enum, to enforce 'horizontal' or 'vertical'?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ipython/ipython/pull/4374/files#r8922291>
> .
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com