photons.equipment.widgets.thorlabs_stage module

Widget for a Thorlabs translational/rotational stage.

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

Bases: BaseEquipmentWidget

Widget for a Thorlabs translational/rotational stage.

Parameters:
  • connection (ThorlabsStage) – The connection to the stage controller.

  • parent (QWidget) – The parent widget.

connection: ThorlabsStage
notification_handler(info)[source]

Handle the notifications from a MotionControlCallback.

Return type:

None

on_callback(info)[source]

Slot for the MotionControlCallback.

Return type:

None

on_edit_settings()[source]

Slot for the self.settings_button click.

Return type:

None

on_editing_finished()[source]

Slot for the DoubleSpinBox.editingFinished signal.

Return type:

None

on_home()[source]

Home the stage.

Return type:

None

on_stop()[source]

Stop the stage from moving.

Return type:

None

class photons.equipment.widgets.thorlabs_stage.Settings(parent)[source]

Bases: QDialog

Edit the jog step size.

closeEvent(event)[source]

Overrides QtWidgets.QWidget.closeEvent() and maybe prompt to save.

Return type:

None

on_apply()[source]

Apply the settings.

Return type:

None

save_settings()[source]

Save the step size to the DoubleSpinBox.

Return type:

None