PyDMMultiStateIndicator

class pydm.widgets.byte.PyDMMultiStateIndicator(parent: Optional[QWidget] = None, init_channel=None)[source]

Bases: QWidget, PyDMWidget

Widget with 16 available states that are set by the connected channel. Each state represents a different color that can be configured.

Parameters:
  • parent (QWidget) – The parent widget for the Label

  • init_channel (str, optional) – The channel to be used by the widget.

eventFilter(self, a0: Optional[QObject], a1: Optional[QEvent]) bool[source]
paintEvent(event: QPaintEvent) None[source]

Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.

Paint the widget according to the state colors.

Parameters:

event (QPaintEvent) –

readCurrentValue() int[source]

The color for when widget is in state 0 :rtype: int

readState0Color() QColor[source]

The color for when widget is in state 0 :rtype: QColor

readState10Color() QColor[source]

The color for when widget is in state 10 :rtype: QColor

readState11Color() QColor[source]

The color for when widget is in state 11 :rtype: QColor

readState12Color() QColor[source]

The color for when widget is in state 12 :rtype: QColor

readState13Color() QColor[source]

The color for when widget is in state 13 :rtype: QColor

readState14Color() QColor[source]

The color for when widget is in state 14 :rtype: QColor

readState15Color() QColor[source]

The color for when widget is in state 15 :rtype: QColor

readState1Color() QColor[source]

The color for when widget is in state 1 :rtype: QColor

readState2Color() QColor[source]

The color for when widget is in state 2 :rtype: QColor

readState3Color() QColor[source]

The color for when widget is in state 3 :rtype: QColor

readState4Color() QColor[source]

The color for when widget is in state 4 :rtype: QColor

readState5Color() QColor[source]

The color for when widget is in state 5 :rtype: QColor

readState6Color() QColor[source]

The color for when widget is in state 6 :rtype: QColor

readState7Color() QColor[source]

The color for when widget is in state 7 :rtype: QColor

readState8Color() QColor[source]

The color for when widget is in state 8 :rtype: QColor

readState9Color() QColor[source]

The color for when widget is in state 9 :rtype: QColor

setCurrentValue(new_state: int) None[source]

The color for when widget is in state 0 :param new_color: :type new_color: int

setState0Color(state_color: QColor) None[source]

The color for when widget is in state 0 :param new_color: :type new_color: QColor

setState10Color(new_color: QColor) None[source]

The color for when widget is in state 10 :param new_color: :type new_color: QColor

setState11Color(new_color: QColor) None[source]

The color for when widget is in state 11 :param new_color: :type new_color: QColor

setState12Color(new_color: QColor) None[source]

The color for when widget is in state 12 :param new_color: :type new_color: QColor

setState13Color(new_color: QColor) None[source]

The color for when widget is in state 13 :param new_color: :type new_color: QColor

setState14Color(new_color: QColor) None[source]

The color for when widget is in state 14 :param new_color: :type new_color: QColor

setState15Color(state_color: QColor) None[source]

The color for when widget is in state 15 :param new_color: :type new_color: QColor

setState1Color(state_color: QColor) None[source]

The color for when widget is in state 1 :param new_color: :type new_color: QColor

setState2Color(new_color: QColor) None[source]

The color for when widget is in state 2 :param new_color: :type new_color: QColor

setState3Color(new_color: QColor) None[source]

The color for when widget is in state 3 :param new_color: :type new_color: QColor

setState4Color(new_color: QColor) None[source]

The color for when widget is in state 4 :param new_color: :type new_color: QColor

setState5Color(new_color: QColor) None[source]

The color for when widget is in state 5 :param new_color: :type new_color: QColor

setState6Color(new_color: QColor) None[source]

The color for when widget is in state 6 :param new_color: :type new_color: QColor

setState7Color(new_color: QColor) None[source]

The color for when widget is in state 7 :param new_color: :type new_color: QColor

setState8Color(new_color: QColor) None[source]

The color for when widget is in state 8 :param new_color: :type new_color: QColor

setState9Color(new_color: QColor) None[source]

The color for when widget is in state 9 :param new_color: :type new_color: QColor

value_changed(new_val: int) None[source]

Callback invoked when the Channel value is changed. :param new_val: The new value from the channel. :type new_val: int

Note

See QWidget Documentation for all inherited properties and methods.