AbstractSliderMixin
Sub classes
| Name | Children | Inherits |
|---|---|---|
| AbstractSlider prettyqt.widgets.abstractslider Integer value within a range. |
||
ScrollBarMixinprettyqt.widgets.scrollbar |
||
| Slider prettyqt.widgets.slider Vertical or horizontal slider. |
||
| Dial prettyqt.widgets.dial Rounded range control (like a speedometer or potentiometer). |
Base classes
| Name | Children | Inherits |
|---|---|---|
| WidgetMixin prettyqt.widgets.widget |
||
| object builtins The base class of the class hierarchy. |
â‹” Inheritance diagram
graph TD
3920585708["widgets.AbstractSliderMixin"]
829357528["widgets.WidgetMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
625385617["gui.PaintDeviceMixin"]
829357528 --> 3920585708
3227531497 --> 829357528
2751680898 --> 3227531497
625385617 --> 829357528
2751680898 --> 625385617
2751680898 --> 829357528
2751680898 --> 3920585708
🛈 DocStrings
Bases: WidgetMixin, _AbstractSliderBase
Source code in prettyqt/widgets/abstractslider.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
get_orientation() -> constants.OrientationStr
get_repeat_action() -> SliderActionStr
is_horizontal() -> bool
is_vertical() -> bool
scroll_to_max()
scroll_to_min()
set_auto_scroll_to_end(scroll: bool = True)
Set to always scroll to the end when range changes.
Source code in prettyqt/widgets/abstractslider.py
set_horizontal()
set_orientation(orientation: constants.OrientationStr | constants.Orientation)
Set the orientation of the slider.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orientation
|
OrientationStr | Orientation
|
orientation for the slider |
required |
Source code in prettyqt/widgets/abstractslider.py
set_repeat_action(action: SliderActionStr | widgets.QAbstractSlider.SliderAction, threshold: int = 500, repeat_time: int = 50)
Set the repeat action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action
|
SliderActionStr | SliderAction
|
repeat action |
required |
threshold
|
int
|
initial delay in ms |
500
|
repeat_time
|
int
|
repeat time in ms |
50
|