navigate.view.popups.camera_map_setting_popup.CameraMapSettingPopup
- class navigate.view.popups.camera_map_setting_popup.CameraMapSettingPopup(root, name='Camera Map Settings', size='+320+180', top=True, transient=True, *args, **kwargs)
Bases:
PopUpPopup to create and visualize camera offset and variance map generation.
- __init__(root, name='Camera Map Settings', size='+320+180', top=True, transient=True, *args, **kwargs)
Initialize the CameraMapSettingPopup.
- Parameters:
root (tk.Tk) – Root window.
name (str, optional) – Name of the popup, by default “Camera Map Settings”.
size (str, optional) – Size of the popup, by default “+320+180”.
top (bool, optional) – Whether the popup should be on top, by default True.
transient (bool, optional) – Whether the popup should be transient, by default True.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
Methods
__init__(root[, name, size, top, transient])Initialize the CameraMapSettingPopup.
dismiss()Releases control back to main window from popup
Returns the parent frame for any widgets you add to the popup
Get the input widgets.
showup()Display popup as top-level window.
Attributes
- dismiss() → None
Releases control back to main window from popup
This function is used to release control back to the main window from the popup window.
- get_frame() → Frame
Returns the parent frame for any widgets you add to the popup
This function is used to return the parent frame for any widgets you add to the popup window.
- Returns:
The parent frame for any widgets you add to the popup
- Return type:
ttk.Frame
- get_widgets()
Get the input widgets.
- Returns:
Dictionary of input widgets.
- Return type:
dict
- showup() → None
Display popup as top-level window.
This function is used to display the popup window as a top-level window.
- camera
Camera name.
- Type:
tk.StringVar
- content_frame
The parent frame for any widgets you add to the popup
- Type:
ttk.Frame
- file_name
File name.
- Type:
tk.StringVar
- inputs
Dictionary of input widgets.
- Type:
dict
- map_btn
Create maps button.
- Type:
ttk.Button
- open_btn
Open file button.
- Type:
ttk.Button