-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_gui.py
More file actions
41 lines (28 loc) · 939 Bytes
/
Copy pathmain_gui.py
File metadata and controls
41 lines (28 loc) · 939 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
33
34
35
36
37
38
39
40
41
"""
GUI entry point for MeteoFrance API Client.
Launches the PyQt6 application window. All interactive CLI prompts are
replaced by the graphical interface defined in src/gui/.
Usage:
python main_gui.py
Author: Samy KRAIEM
Created: 2026
Updated: 2026
"""
import logging
import sys
# QtWebEngineWidgets MUST be imported before QApplication is instantiated.
from PyQt6.QtWebEngineWidgets import QWebEngineView # noqa: F401
from PyQt6.QtWidgets import QApplication
from src.gui.main_window import MainWindow
def main() -> None:
"""Create the QApplication and show the main window."""
# Configure root logger before any module emits records
logging.basicConfig(level=logging.INFO)
app = QApplication(sys.argv)
app.setApplicationName("MeteoFrance API Client")
app.setApplicationVersion("2026")
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == '__main__':
main()