-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
28 lines (19 loc) · 837 Bytes
/
Copy pathrun.py
File metadata and controls
28 lines (19 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from logic.application import Application
from ui.ui import create_main_window
from utils.logger_config import setup_logging, parse_arguments
debug_mode = parse_arguments()
setup_logging(debug_mode)
def main():
"""
Main function to start the application.
This function creates the main window using the 'create_main_window' function from the 'ui' module.
Then, it creates an instance of the 'Application' class and passes the root window as an argument.
The 'app' variable is used to keep the Application instance alive.
Finally, it starts the main event loop using the 'mainloop' method of the root window.
Note: The 'app' variable must exist to keep the Application instance alive.
"""
root = create_main_window()
Application(root)
root.mainloop()
if __name__ == "__main__":
main()