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.

eventFilter(self, a0: Optional[QObject], a1: Optional[QEvent]) bool[source]
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

update_labels() None[source]

Update the limits and value labels with the correct values.

upperCtrlLimitChanged(new_limit: float) None[source]

PyQT Slot for changes on the upper control limit value of the Channel This slot sends the new limit value to the `ctrl_limit_changed` callback.

Parameters:

new_limit (float) –

value_changed(new_value: float) None[source]

Callback invoked when the Channel value is changed.

Parameters:

new_value (int or float) – The new value from the channel.

Note

See QFrame Documentation for all inherited properties and methods.