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.
- 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) –
- 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
Note
See QWidget Documentation for all inherited properties and methods.