PyDMScaleIndicator
- class pydm.widgets.scale.PyDMScaleIndicator(parent: Optional[QWidget] = None, init_channel: Optional[str] = None)[source]
Bases:
QFrame
,TextFormatter
,PyDMWidget
A bar-shaped indicator for scalar value with support for Channels and more from PyDM. Configurable features include indicator type (bar/pointer), scale tick marks and orientation (horizontal/vertical).
- Parameters:
parent (QWidget) – The parent widget for the Scale
init_channel (str, optional) – The channel to be used by the widget.
- lowerCtrlLimitChanged(new_limit: float) None [source]
PyQT Slot for changes on the lower control limit value of the Channel This slot sends the new limit value to the
`ctrl_limit_changed`
callback.- Parameters:
new_limit (float) –
- setup_widgets_for_orientation(new_orientation: Orientation, flipped: bool, inverted: bool, value_position: Edge) None [source]
Reconstruct the widget given the orientation.
- Parameters:
new_orientation (int) – Qt.Horizontal or Qt.Vertical
flipped (bool) – Indicates if scale tick marks are flipped to the other side
inverted (bool) – Indicates if scale appearance is inverted
Note
See QFrame Documentation for all inherited properties and methods.