diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-06 22:15:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-06 22:15:00 +0000 |
commit | 8d918f88e6d576dc1612e5625a0ad802d17c8e13 (patch) | |
tree | 7866459f67ba7f4c37d87cf9ea8846b37915fadc /Build/source/utils/asymptote/GUI/xasy.py | |
parent | eb21dd9dc04d18b2ceda665ab6272d4a97926f38 (diff) |
asy 2.60 sources
git-svn-id: svn://tug.org/texlive/trunk@52659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/GUI/xasy.py')
-rwxr-xr-x | Build/source/utils/asymptote/GUI/xasy.py | 7 |
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_() |