Slider
- class Slider[source]
Bases:
QWidget
Class representing a horizontal slider wrapped in a grid layout with two rows.
- Parameters:
- actioncallable
The callback connected to the slide action.
- valueint, optional
The initial value of the slider. Defaults to 0.
- min_valueint, optional
The minimum value of the sliding range. Defaults to 0.
- max_valueint, optional
The maximum value of the sliding range. Defaults to 100.
- stepint, optional
Size of value increments. Defaults to 1.
- titlestr, optional
Title label.
- annotationstr, optional
Value annotation label.
- intervalint, optional
The tick interval size. Defaults to 1.
- bgcolor
compas.colors.Color
, optional Background color of the box containing the slider.
- stretchint, optional
Stretch factor of the slider in the grid layout. Defaults to 0.
- kwargsdict, optional
Additional keyword arguments for the action.
See also
References
- Attributes:
- actioncallable
Action associated with the button click event.
- sliderQtWidgets.QSlider
The actual slider widget.
- valuefloat
The current value of the slider.
- STYLEstr
Stylesheet for the visual appearance of the groove and handle of the slider.
Inherited Methods