navigate.controller.sub_controllers.stages_advanced.AdvancedStageParametersController
- class navigate.controller.sub_controllers.stages_advanced.AdvancedStageParametersController(popup: AdvancedStageParametersPopup, parent_controller: Controller, *args, **kwargs)
Bases:
objectController for the Advanced Stage Parameters popup.
- __init__(popup: AdvancedStageParametersPopup, parent_controller: Controller, *args, **kwargs) → None
Initialize the AdvancedStageParametersController class.
- Parameters:
root (tk.Tk) – The root window
popup (AdvancedStageParametersPopup) – The popup window for stage limits
parent_controller (Controller) – The parent controller that manages this popup
*args – Variable length argument list
**kwargs – Arbitrary keyword arguments
Methods
__init__(popup, parent_controller, *args, ...)Initialize the AdvancedStageParametersController class.
Close the popup window.
flip_axis(axis)Flip the stage axis in the configuration.
Save the current stage parameters to the configuration file.
showup()This function will let the popup window show in front.
toggle_limits(*args)Toggle the stage limits on or off.
update_axis(axis)Get the current stage position, and update the stage limits in the configuration.
update_microscope(*args[, in_initialization])Update the microscope configuration when the microscope is changed.
update_spinboxes(axis)Update the spinboxes for the stage limits.
Attributes
- close_popup() → None
Close the popup window.
- flip_axis(axis: str) → None
Flip the stage axis in the configuration.
- Parameters:
axis (str) – The axis to flip, e.g., ‘x’, ‘y’, or ‘z’.
- save_stage_parameters() → None
Save the current stage parameters to the configuration file.
- showup()
This function will let the popup window show in front.
- toggle_limits(*args) → None
Toggle the stage limits on or off.
- update_axis(axis: str) → None
Get the current stage position, and update the stage limits in the configuration. Only applied when someone presses the “update” button.
- axis: str
The stage limit to update, e.g., ‘x_min’, ‘y_max’, ‘f_home’, etc.
- update_microscope(*args, in_initialization: Optional[bool] = False) → None
Update the microscope configuration when the microscope is changed.
- Parameters:
in_initialization (bool, optional) – If True, this method is called during initialization and does not save the previous stage parameters.
- update_spinboxes(axis: str) → None
Update the spinboxes for the stage limits.
- Parameters:
axis (str) – The axis to update, e.g., ‘x’, ‘y’, or ‘z’.
- current_microscope
The current microscope name.
- Type:
str
- local_config_controller
Controller for the local configuration.
- Type:
- positions
Current stage positions for the selected microscope.
- Type:
dict
- stage_dict
Stage configuration dictionary for the current microscope.
- Type:
dict