summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/GUI/xasy.py
blob: 7a8ee9b2f713fee98a746bd713b6ecd0eb7fd40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3

import sys,signal,os
import PyQt5.QtWidgets as Qw
import PyQt5.QtCore as Qc
from Window1 import MainWindow1

def main(args):
    Qw.QApplication.setAttribute(Qc.Qt.AA_UseHighDpiPixmaps,True)
    Qw.QApplication.setAttribute(Qc.Qt.AA_EnableHighDpiScaling,True)
    qtApp = Qw.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)