Better pass kwargs

this is not py2 anymore

(cherry picked from commit 6b2766e668)
This commit is contained in:
Gouvernathor 2023-11-17 03:46:34 +01:00 committed by LoafyLemon
parent 21c170e256
commit a516e76f9b
1 changed files with 1 additions and 3 deletions

View File

@ -428,9 +428,7 @@ init -1 python:
class SVGradientButton(ImageButton):
def __init__(self, on_click, idle_image, *args, **kwargs):
kwargs['sensitive'] = True
kwargs['action'] = NullAction()
super(SVGradientButton, self).__init__(idle_image, *args, **kwargs)
super(SVGradientButton, self).__init__(idle_image, *args, sensitive=True, action=NullAction(), **kwargs)
self.width = 0
self.height = 0
self.on_click = on_click