-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (22 loc) · 709 Bytes
/
main.py
File metadata and controls
32 lines (22 loc) · 709 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
29
30
31
32
#!/usr/bin/env python3
"""
Website Archiver - A program for saving and organizing websites locally.
This module is the entry point of the application and initializes the main window.
"""
import sys
from typing import NoReturn
from PyQt6.QtWidgets import QApplication
from ui.main_window import MainWindow
def main() -> NoReturn:
"""
Main function of the program.
Initializes the Qt application and main window, then starts the event loop.
Returns:
NoReturn: This function does not return as it enters the Qt event loop.
"""
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()