photons.equipment.widgets.shutter module

Widget for a shutter.

class photons.equipment.widgets.shutter.ShutterWidget(connection, *, parent=None)[source]

Bases: BaseEquipmentWidget

Widget for a shutter.

Parameters:
  • connection (Shutter) – The connection to the shutter controller.

  • parent (QWidget) – The parent widget.

connection: Shutter
notification_handler(state)[source]

Handle notifications emitted by the Shutter Service.

Return type:

None

on_toggled(state)[source]

Toggle the state of the shutter.

Return type:

None

on_state_changed(state)[source]

Update the ToggleSwitch without emitting the signal.

Return type:

None

update_tooltip()[source]

Update the tooltip of the ToggleSwitch.

Return type:

None