navigate.view.popups.stages_advanced_popup.AdvancedStageParametersPopup
- class navigate.view.popups.stages_advanced_popup.AdvancedStageParametersPopup(root, *args, **kwargs)
Bases:
object
Class creates the popup to set advanced stage parameters.
- __init__(root, *args, **kwargs)
Initialize the CameraSettingPopup class.
- Parameters:
root (tkinter.Tk) – Root window of the application.
args (list) – List of arguments.
kwargs (dict) – Dictionary of keyword arguments.
Methods
__init__
(root, *args, **kwargs)Initialize the CameraSettingPopup class.
Clear the view by destroying all widgets and resetting variables.
populate_view
(stages, min_dict, max_dict, ...)Populate the view with the stages.
Attributes
Popup window for the camera view.
Dictionary to hold the buttons for updating limits.
Dictionary to hold the spinboxes for stage limits.
Dictionary to hold the flip flags for each stage.
Dictionary to hold the flip buttons for each stage.
Variable to hold the state of the stage limits checkbox.
Checkbox for the stage limits.
Button to save the limits.
Dropdown for selecting the microscope.
Holder for column frames (LabelFrames)
Fixed row height (px) to ensure perfect alignment across columns
- clear_view() → None
Clear the view by destroying all widgets and resetting variables.
- populate_view(stages: list, min_dict: dict, max_dict: dict, flip_axes: dict, offsets: dict, home_dict: dict) → None
Populate the view with the stages.
Add the widgets to the view for each stage in alphabetical order. Creates a row for each stage with: stage name, min_dict limit spinbox, update min_dict button, max limit spinbox, and update max button.
- Parameters:
stages (list) – The list of stage names as strings.
min_dict (dict) – A dictionary containing the minimum limits for each stage.
max_dict (dict) – A dictionary containing the maximum limits for each stage.
flip_axes (dict) – A dictionary containing the flip flags for each stage.
offsets (dict) – A dictionary containing the offsets for each stage.
- buttons
Dictionary to hold the buttons for updating limits.
- Type:
dict
- column_frames
Holder for column frames (LabelFrames)
- Type:
dict
- enable_stage_limits_var
Variable to hold the state of the stage limits checkbox.
- Type:
BooleanVar
- flip_button
Dictionary to hold the flip buttons for each stage.
- Type:
dict
- flip_flags
Dictionary to hold the flip flags for each stage.
- Type:
dict
- microscope
Dropdown for selecting the microscope.
- Type:
- row_minsize
Fixed row height (px) to ensure perfect alignment across columns
- Type:
int
- save_button
Button to save the limits.
- Type:
- spinboxes
Dictionary to hold the spinboxes for stage limits.
- Type:
dict
- stage_limits_enabled
Checkbox for the stage limits.
- Type:
Checkbutton