We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb122b3 + d07618a commit d14cb74Copy full SHA for d14cb74
labscript_utils/splash.py
@@ -29,6 +29,15 @@
29
Qt = QtCore.Qt
30
31
32
+# Set auto high-DPI scaling - this ensures pixel metrics are scaled
33
+# appropriately so that we don't get a weird mix of large fonts and small
34
+# everything else on High DPI displays:
35
+QtWidgets.QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)
36
+# Use high res pixmaps if available, instead of rendering at low resolution and
37
+# upscaling:
38
+QtWidgets.QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps, True)
39
+
40
41
class Splash(QtWidgets.QFrame):
42
w = 250
43
h = 230
0 commit comments