-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (23 loc) · 735 Bytes
/
Copy pathmain.py
File metadata and controls
33 lines (23 loc) · 735 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
import sys
from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QApplication
from qt_material import apply_stylesheet # type: ignore
from constants import APP_NAME, VERSION
from ui.main_window import XboxBackupManager # type: ignore
def main():
"""Main application entry point"""
# Initialize the application
app = QApplication(sys.argv)
app.setApplicationName(APP_NAME)
app.setApplicationVersion(VERSION)
apply_stylesheet(app, theme="dark_teal.xml")
# Set application icon if available
try:
app.setWindowIcon(QIcon("icon.ico"))
except Exception:
pass
window = XboxBackupManager()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()