navigate.view.main_window_content.camera_tab.ROI
- class navigate.view.main_window_content.camera_tab.ROI(settings_tab: CameraSettingsTab, *args: tuple, **kwargs: dict)
Bases:
LabelframeROI Frame.
Widgets can be adjusted below. Dropdown values need to be set in the controller. The function widget.set_values(values) allows this. It can be found in the LabelInput class. The widgets can be found in the dictionary by using the first word in the label, after using get_widgets. The variables tied to each widget can be accessed via the widget directly or with the dictionary generated by get_variables.
- __init__(settings_tab: CameraSettingsTab, *args: tuple, **kwargs: dict) → None
Initialize the ROI Frame
- Parameters:
settings_tab (CameraSettingsTab) – The settings tab that the frame will be placed in.
*args (tuple) – Positional arguments for ttk.LabelFrame
**kwargs (dict) – Keyword arguments for ttk.LabelFrame
Methods
__init__(settings_tab, *args, **kwargs)Initialize the ROI Frame
Get Buttons.
Get Variables.
Get Widgets.
Attributes
- get_buttons() → dict
Get Buttons.
This function returns the dictionary that holds the buttons. The key is the widget name, value is the LabelInput class that has all the data.
- Returns:
self.buttons – Dictionary of all the buttons in the frame.
- Return type:
dict
- get_variables() → dict
Get Variables.
This function returns a dictionary of all the variables that are tied to each widget name.
The key is the widget name, value is the variable associated.
- Returns:
variables – Dictionary of all the variables tied to each widget.
- Return type:
dict
- get_widgets() → dict
Get Widgets.
This function returns the dictionary that holds the widgets. The key is the widget name, value is the LabelInput class that has all the data.
- Returns:
self.inputs – Dictionary of all the widgets in the frame.
- Return type:
dict
- binning
The binning label.
- Type:
str
- btn_frame
The parent frame for default FOV options.
- Type:
ttk.LabelFrame
- buttons
Dictionary of all the buttons in the frame.
- Type:
dict
- fov_frame
The parent frame for the FOV size.
- Type:
ttk.LabelFrame
- inputs
Dictionary of all the widgets in the frame.
- Type:
dict
- roi_boundary_frame
The parent frame for the boundary of the FOV.
- Type:
ttk.LabelFrame
- roi_frame
The parent frame for any the camera size.
- Type:
ttk.LabelFrame