navigate.view.main_window_content.channels_tab.ChannelCreator
- class navigate.view.main_window_content.channels_tab.ChannelCreator(channels_tab: SettingsNotebook, *args: list, **kwargs: dict)
Bases:
LabelframeChannel Creator
This frame is used to create the channels for the stack acquisition.
- __init__(channels_tab: SettingsNotebook, *args: list, **kwargs: dict) → None
Initialization of the Channel Creator
- Parameters:
channels_tab (tk.Frame) – The frame that this frame is added to
*args (list) – Positional arguments for ttk.Labelframe
**kwargs (dict) – Keyword arguments for ttk.Labelframe
Methods
__init__(channels_tab, *args, **kwargs)Initialization of the Channel Creator
create_labels(filter_wheel_names, filter_wheels)Create the labels for the columns.
is_synthetic_filter_wheel(filter_wheel_idx, ...)Return whether a filter wheel type should be hidden in the GUI.
populate_frame(channels, filter_wheels, ...)Populates the frame with the widgets.
Destroy existing channel widgets and clear references.
should_hide_filter_wheel(filter_wheel_idx, ...)Return whether a filter wheel should be hidden in the GUI.
Attributes
- create_labels(filter_wheel_names: list, filter_wheels: int, filter_wheel_types: list = None, filter_wheel_visibility: list = None) → None
Create the labels for the columns.
Function to create the labels for the columns of the Channel Creator frame.
- Parameters:
filter_wheel_names (list) – A list of the names of the filter wheels
filter_wheels (int) – Number of filter wheels
filter_wheel_types (list) – The types of filter wheels
filter_wheel_visibility (list) – Indicates whether each filter wheel belongs to this microscope
- static is_synthetic_filter_wheel(filter_wheel_idx: int, filter_wheel_types: list) → bool
Return whether a filter wheel type should be hidden in the GUI.
- populate_frame(channels: int, filter_wheels: int, filter_wheel_names: list, filter_wheel_types: list = None, filter_wheel_visibility: list = None) → None
Populates the frame with the widgets.
This function populates the frame with the widgets for the channels. By updating the self.label_text list, the columns can be changed. This function is called when the frame is initialized, and when the number of channels is changed in the controller.
- Parameters:
channels (int) – The number of channels to be added to the frame.
filter_wheels (int) – The number of filter wheels
filter_wheel_names (list) – The names of the filter wheels
filter_wheel_types (list) – The types of filter wheels
filter_wheel_visibility (list) – Indicates whether each filter wheel belongs to this microscope
- reset_frame() → None
Destroy existing channel widgets and clear references.
- classmethod should_hide_filter_wheel(filter_wheel_idx: int, filter_wheel_types: list, filter_wheel_visibility: list) → bool
Return whether a filter wheel should be hidden in the GUI.
- channel_checks
List of the channel check buttons
- Type:
list
- channel_variables
List of the variables for the channel check buttons
- Type:
list
- defocus_reference
Text for the active defocus reference status
- Type:
tk.StringVar
- defocus_reference_label
Label for the active defocus reference status
- Type:
ttk.Label
- defocus_spins
List of the defocus spin boxes
- Type:
list
- defocus_variables
List of the variables for the defocus spin boxes
- Type:
list
- exptime_pulldowns
List of the exposure time dropdowns
- Type:
list
- exptime_variables
List of the variables for the exposure time dropdowns
- Type:
list
- filterwheel_pulldowns
List of the filter wheel dropdowns
- Type:
list
- filterwheel_variables
List of the variables for the filter wheel dropdowns
- Type:
list
- frame_columns
List of the frames for the columns
- Type:
list
- interval_spins
List of the time interval spin boxes
- Type:
list
- interval_variables
List of the variables for the time interval spin boxes
- Type:
list
- label_text
List of the labels for the columns
- Type:
list
- labels
List of the labels for the columns
- Type:
list
- laser_pulldowns
List of the laser dropdowns
- Type:
list
- laser_variables
List of the variables for the laser dropdowns
- Type:
list
- laserpower_pulldowns
List of the laser power dropdowns
- Type:
list
- laserpower_variables
List of the variables for the laser power dropdowns
- Type:
list
- pad_x
The default padding for widgets in the x direction
- Type:
int
- pad_y
The default padding for widgets in the y direction
- Type:
int
- title
The title of the frame
- Type:
str