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)))