Slider

base_cls: list

 

__init__(self, var, type='range', value=None, range=None, **attrs): 

LLM Docstring

A range-slider control, deriving min/max/step from a range spec when given.

  • var: Any

    the bound variable

  • type: str

    the input type

  • value: Any

    the initial value

  • range: Any

    a (min, max[, step]) range spec

  • attrs: Any

    extra attributes

 

get_value(self): 

LLM Docstring

Read the slider value, coercing it to an int or float when possible.

  • :returns: _

    the numeric value

 

set_value(self): 

LLM Docstring

Push the variable’s value into the slider (as a string).


Feedback

Examples

Templates

Documentation