-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathnparse.py
33 lines (28 loc) · 1.02 KB
/
nparse.py
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
"""NomnsParse: Parsing tools for Project 1999."""
import os
import sys
from PySide6.QtGui import QFontDatabase, QIcon
from nParse.helpers import resource_path
from nParse.helpers.application import NomnsParse
if __name__ == "__main__":
try:
import ctypes
APPID = 'nomns.nparse'
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(APPID)
except:
pass
try:
import pyi_splash # noqa
pyi_splash.update_text('Done!')
pyi_splash.close()
except: # noqa
pass
APP = NomnsParse(sys.argv)
APP.setStyleSheet(open(resource_path(os.path.join('data', 'ui', '_.css'))).read())
APP.setWindowIcon(QIcon(resource_path(os.path.join('data', 'ui', 'icon.png'))))
APP.setQuitOnLastWindowClosed(False)
QFontDatabase.addApplicationFont(
resource_path(os.path.join('data', 'fonts', 'NotoSans-Regular.ttf')))
QFontDatabase.addApplicationFont(
resource_path(os.path.join('data', 'fonts', 'NotoSans-Bold.ttf')))
sys.exit(APP.exec())