Merge pull request #203 from MiWCryptAnalytics/patch-1

Add UI Scaling for HiDPi Support
This commit is contained in:
evilsocket 2018-10-08 01:54:27 +02:00 committed by GitHub
commit abff18e201
Failed to generate hash of commit

View file

@ -1,6 +1,6 @@
#!/usr/bin/python3
from PyQt5 import QtWidgets, QtGui
from PyQt5 import QtWidgets, QtGui, QtCore
import sys
import os
@ -33,7 +33,9 @@ if __name__ == '__main__':
args = parser.parse_args()
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
app = QtWidgets.QApplication(sys.argv)
app.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
service = UIService(app, on_exit, args.config)
server = grpc.server(futures.ThreadPoolExecutor(max_workers=4))