SvgMultiStateLED
- class pcdswidgets.motion.common.svg_multi_state_led.SvgMultiStateLED(*args, **kwargs)[source]
- channels() list[str][source]
Return all channels used by this widget.
- Returns:
List of PyDMChannel objects
- Return type:
list
- check_enable_state() None[source]
Override to force disconnected icon when not connected. This is called by PyDMWidget regularly.
- connection_changed(connected)[source]
Override PyDMWidget’s connection callback to handle disconnection.
- Parameters:
connected (bool) – True if connected, False if disconnected
- paintEvent(event)[source]
Override to center the SVG rendering. Minimal modification of PyDMSymbol’s paintEvent. Annoying, but had to be done for aesthetics.
- set_move_direction(direction: str) None[source]
Set which direction the MOVING arrow icon should point.
Meant to be called from outside, e.g. connected to a jog button’s clicked signal, so the arrow reflects the button that was pressed.
- Parameters:
direction (str) – One of “up”, “down”, “left”, “right”.