fix pylint/black

This commit is contained in:
Dpeta 2023-06-28 02:54:33 +02:00
parent 0ea2d450ac
commit 8ec4f694f9
No known key found for this signature in database
GPG key ID: 51227517CEA0030C

View file

@ -2003,14 +2003,16 @@ class PesterWindow(MovingWindow):
# ~lisanne : loads fonts from the `main/fonts` key in a theme
# Note that this wont load fonts from inherited themes
# that seems fine imo, esp since u could still load them through `$path/../inheritedtheme/somefont.ttf`
PchumLog.debug("Loading font " + font_path)
PchumLog.debug("Loading font %s", font_path)
fontID = QtGui.QFontDatabase.addApplicationFont(font_path)
if fontID == -1:
PchumLog.error("Failed loading font: " + font_path)
PchumLog.error("Failed loading font: %s", font_path)
# TODO? Maybe make this spawn an error popup
else:
PchumLog.debug(
f"Font families: {(QtGui.QFontDatabase.applicationFontFamilies(fontID))} (id: {fontID})"
"Font families: %s (id: %s)",
QtGui.QFontDatabase.applicationFontFamilies(fontID),
fontID,
)
self.resize(*theme["main/size"])