-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (21 loc) · 836 Bytes
/
main.py
File metadata and controls
28 lines (21 loc) · 836 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 sys import exit, argv
from PySide6.QtWidgets import QApplication
import mainWindow
import os, importlib, faulthandler, argparse
try:
from ctypes import windll # Only exists on Windows.
myappid = 'com.vhlab.appbugios.dist.1'
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
except ImportError:
pass
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="A simple program.")
parser.add_argument("-D", "--debug", action='store_true', help="Enable debug messages")
args = parser.parse_args()
app = QApplication(argv)
mWindow = mainWindow.MainWindow(debug=args.debug)
mWindow.show()
if '_PYI_SPLASH_IPC' in os.environ and importlib.util.find_spec("pyi_splash"):
import pyi_splash
pyi_splash.close()
exit(app.exec())