-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (23 loc) · 816 Bytes
/
Copy pathmain.py
File metadata and controls
26 lines (23 loc) · 816 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
import sys, os
import qdarkstyle
from PyQt6.QtWidgets import QApplication
from src.gui.windows.main_window import MainWindow
# ---------------------------------------------
# MAIN APPLICATION ENTRY POINT
# ---------------------------------------------
def main() -> None:
"""
The main entry point of the application.
This function initializes the QApplication, creates an instance of the MainWindow,
displays it, and starts the application's event loop.
"""
os.system('cls' if os.name == 'nt' else 'clear')
os.environ['QTWEBENGINE_DICTIONARIES_PATH'] = '/tmp'
app = QApplication(sys.argv)
app.setStyle("Fusion")
app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt6())
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()