-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (24 loc) · 740 Bytes
/
main.py
File metadata and controls
28 lines (24 loc) · 740 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
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from qt_material import apply_stylesheet
from src.settings import *
from src.mainDialog import MainDialog
if __name__ == "__main__":
# create the application and the main window
app = QApplication(sys.argv)
window = MainDialog()
# setup stylesheet
# See this link for more information. -> https://pypi.org/project/qt-material/
extra = {
# Font
'font_family': '나눔고딕',
'font_size': '12px'
}
apply_stylesheet(app, theme='src/theme.xml', invert_secondary = True, extra = extra)
window.show()
try:
sys.exit(app.exec_())
except:
settings.expireInfo()
print("Exiting")