PyRogueLabel

For conceptual usage, see:

class pyrogue.pydm.widgets.PyRogueLabel(parent, init_channel=None, show_units=True)[source]

PyDM label variant with optional engineering-unit display.

Parameters:
  • parent (QWidget) – Parent Qt widget.

  • init_channel (str | None, default: None) – Initial Rogue channel address.

  • show_units (bool, default: True) – If True, display channel units in a dedicated unit label.

unit_changed(new_unit)[source]

Update displayed engineering units.

Return type:

None

Parameters:

new_unit (str)

value_changed(new_value)[source]

Callback invoked when the Channel value is changed. Sets the value of new_value accordingly at the Label.

Parameters:

new_value (str | int | float | bool | ndarray) – The new value from the channel. The type depends on the channel.

Return type:

None