Slider
- class Slider[source]
Bases:
object
Class representing a horizontal slider wrapped in a grid layout with two rows.
- Parameters
- app
compas_view2.app.App
The app containing the widget.
- parentQtWidget
The parent widget.
- actioncallable
The callback connected to the slide action.
- valueint, optional
The initial value of the slider.
- minvalint, optional
The minimum value of the sliding range.
- maxvalint, optional
The maximum value of the sliding range.
- stepint, optional
Size of value increments.
- titlestr, optional
Title label.
- annotationstr, optional
Value annotation label.
- intervalint, optional
The tick interval size.
- bgcolorColor, optional
Background color of the box containing the slider.
- app
- 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.
Methods