From 1ea2de28405b8572ac1fa7a76f87f882b2592ecd Mon Sep 17 00:00:00 2001 From: Philip Goosen Date: Thu, 24 Aug 2023 15:11:55 +0200 Subject: [PATCH] Reformat line spacing to pass linting test --- helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers.py b/helpers.py index 7bd76e29..9e6ab1d3 100644 --- a/helpers.py +++ b/helpers.py @@ -63,7 +63,9 @@ def loadBitmapScaled(filename, scale=1.0, static=False): bmp = wx.Bitmap(path) w, h = bmp.GetSize() img = bmp.ConvertToImage() - if hasattr(wx.SystemSettings, "GetAppearance") and hasattr(wx.SystemSettings.GetAppearance, "IsUsingDarkBackground"): + if hasattr(wx.SystemSettings, "GetAppearance") and hasattr( + wx.SystemSettings.GetAppearance, "IsUsingDarkBackground" + ): if wx.SystemSettings.GetAppearance().IsUsingDarkBackground(): img.Replace(0, 0, 0, 255, 255, 255) bmp = wx.Bitmap(img.Scale(int(w * scale), int(h * scale)))