summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/GUI/xasy.py
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/GUI/xasy.py')
-rwxr-xr-xBuild/source/utils/asymptote/GUI/xasy.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/GUI/xasy.py b/Build/source/utils/asymptote/GUI/xasy.py
index 7e38f73a2aa..7a8ee9b2f71 100755
--- a/Build/source/utils/asymptote/GUI/xasy.py
+++ b/Build/source/utils/asymptote/GUI/xasy.py
@@ -1,12 +1,15 @@
#!/usr/bin/env python3
-import sys
+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_()