We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf5dda commit e2819d2Copy full SHA for e2819d2
1 file changed
src/PyMca5/PyMcaGui/pymca/PyMcaMain.py
@@ -187,14 +187,11 @@
187
if __name__ == "__main__":
188
sys.excepthook = qt.exceptionHandler
189
190
- # To avoid "Dark mode"; this force main windows to be light (but not all submenus)
191
if sys.platform == 'win32':
+ # To avoid "Dark mode"; this force main windows to be light (but not all submenus)
192
_ = os.environ.setdefault("QT_QPA_PLATFORM", "windows:darkmode=0")
193
-
194
195
- # minimal fix matplotlib fonts when Windows scale (DPI) is not 100%
196
- if sys.platform == 'win32':
197
- os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "0"
+ # minimal fix for matplotlib fonts when Windows scale (DPI) is not 100%
+ _ = os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "0"
198
199
app = qt.QApplication(sys.argv)
200
0 commit comments