navigate.view.main_window_content.camera_tab.CameraMode
- class navigate.view.main_window_content.camera_tab.CameraMode(settings_tab: CameraSettingsTab, *args, **kwargs)
Bases:
LabelframeThis class generates the camera mode label 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, **kwargs) → None
Initialize the Camera Mode 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 Camera Mode Frame
Get Variables.
Get Widgets.
Attributes
- 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 with the widget.
- 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.
- Parameters:
self.inputs (dict) – Dictionary of all the widgets in the frame.
- inputs
Dictionary of all the widgets in the frame.
- Type:
dict
- labels
List of all the labels for the widgets.
- Type:
list
- names
List of all the names for the widgets.
- Type:
list