navigate.controller.configurator.Configurator
- class navigate.controller.configurator.Configurator(root: Tk, splash_screen)
Bases:
object
Navigate Configurator
- __init__(root: Tk, splash_screen)
Initiates the configurator application window.
- Parameters:
root (tk.Tk) – The main window of the application
splash_screen (SplashScreen) – The splash screen of the application
Methods
__init__
(root, splash_screen)Initiates the configurator application window.
Add a new microscope tab
Creates the configuration window tabs.
Delete all microscopes
device_selected
(event)Handle the event when a device is selected from the dropdown.
Load configuration
Create new configurations
Closes the window and exits the program
save
()Save configuration file
write_to_yaml
(config, filename)write yaml file
- add_microscope() → None
Add a new microscope tab
- create_config_window(id: int) → None
Creates the configuration window tabs.
- Parameters:
id (int) – The id of the microscope
- delete_microscopes() → None
Delete all microscopes
- device_selected(event)
Handle the event when a device is selected from the dropdown.
- load_configuration() → None
Load configuration
- new_configuration() → None
Create new configurations
- on_cancel() → None
Closes the window and exits the program
- save() → None
Save configuration file
- write_to_yaml(config: dict, filename: str) → None
write yaml file
- Parameters:
config (dict) – configuration dictionary
filename (str) – yaml file name