diff options
author | Nao Pross <np@0hm.ch> | 2022-11-17 16:41:04 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2022-11-17 16:41:04 +0100 |
commit | 3ed5ae1c6beafddfa8d6fd8a6515dcdb5d534c7c (patch) | |
tree | 7a8dce105623a2351c61efb7055939dc3a4edf76 /muddle | |
parent | Create login dialog for SWITCH (diff) | |
download | Muddle-master.tar.gz Muddle-master.zip |
Diffstat (limited to '')
-rw-r--r-- | muddle/gui.py | 4 |
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) |