Merge pull request #143 from Dpeta/got_too_silly

fix pylint/black
This commit is contained in:
Dpeta 2023-06-28 02:57:54 +02:00 committed by GitHub
commit f4eb4a2265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2003,14 +2003,16 @@ class PesterWindow(MovingWindow):
# ~lisanne : loads fonts from the `main/fonts` key in a theme # ~lisanne : loads fonts from the `main/fonts` key in a theme
# Note that this wont load fonts from inherited themes # 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` # 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) fontID = QtGui.QFontDatabase.addApplicationFont(font_path)
if fontID == -1: 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 # TODO? Maybe make this spawn an error popup
else: else:
PchumLog.debug( 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"]) self.resize(*theme["main/size"])