-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsht.py
More file actions
32 lines (23 loc) · 764 Bytes
/
sht.py
File metadata and controls
32 lines (23 loc) · 764 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
# coding : utf8
import os
import sys
import platform
from PySide2.QtGui import QFont
from PySide2.QtWidgets import QApplication
from app.signin import SignInWidget
if __name__ == '__main__':
if platform.system() == 'Windows':
import PySide2
dirname = os.path.dirname(PySide2.__file__)
plugin_path = os.path.join(dirname, 'plugins', 'platforms')
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path
import ctypes
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("sht")
app = QApplication(sys.argv)
font = QFont()
font.setFamily("微软雅黑")
app.setFont(font)
signinwindow = SignInWidget()
signinwindow.show()
signinwindow.raise_()
sys.exit(app.exec_())