blob: a078690b68b931a21e2ebbb3b1baffa09092e898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env python3
import sys, signal, os
import PyQt5.QtWidgets as QtWidgets
import PyQt5.QtCore as QtCore
from Window1 import MainWindow1
def main(args):
os.environ["QT_LOGGING_RULES"]="*.debug=false;qt.qpa.*=false"
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps,True)
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling,True)
qtApp = QtWidgets.QApplication(args)
signal.signal(signal.SIGINT,signal.SIG_DFL)
mainWin1 = MainWindow1()
mainWin1.show()
return qtApp.exec_()
if __name__ == '__main__':
sys.exit(main(sys.argv) or 0)
|