aboutsummaryrefslogtreecommitdiffstats
path: root/muddle
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2022-11-17 16:41:04 +0100
committerNao Pross <np@0hm.ch>2022-11-17 16:41:04 +0100
commit3ed5ae1c6beafddfa8d6fd8a6515dcdb5d534c7c (patch)
tree7a8dce105623a2351c61efb7055939dc3a4edf76 /muddle
parentCreate login dialog for SWITCH (diff)
downloadMuddle-3ed5ae1c6beafddfa8d6fd8a6515dcdb5d534c7c.tar.gz
Muddle-3ed5ae1c6beafddfa8d6fd8a6515dcdb5d534c7c.zip
Correct system monospace font selectionHEADmaster
Diffstat (limited to '')
-rw-r--r--muddle/gui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/muddle/gui.py b/muddle/gui.py
index d3bdebf..8f096f3 100644
--- a/muddle/gui.py
+++ b/muddle/gui.py
@@ -24,6 +24,7 @@ from PyQt6 import uic
from PyQt6.QtGui import (
QFileSystemModel,
QFont,
+ QFontDatabase,
QIcon,
QStandardItem,
QStandardItemModel,
@@ -372,8 +373,7 @@ class MuddleWindow(QMainWindow):
logging.getLogger("muddle").addHandler(self.loghandler)
## Set font to be monospaced
- f = QFont("_monospace")
- f.setStyleHint(QFont.StyleHint.Monospace)
+ f = QFontDatabase.systemFont(QFontDatabase.SystemFont.FixedFont)
self.logsTab = self.findChild(QPlainTextEdit, "logsTab")
self.logsTab.setFont(f)