forked from SilverStudioGames/WTS
Better pass kwargs
this is not py2 anymore (cherry picked from commit 6b2766e66852881a1f06d4b74b597d2c51feae75)
This commit is contained in:
parent
21c170e256
commit
a516e76f9b
@ -428,9 +428,7 @@ init -1 python:
|
|||||||
class SVGradientButton(ImageButton):
|
class SVGradientButton(ImageButton):
|
||||||
|
|
||||||
def __init__(self, on_click, idle_image, *args, **kwargs):
|
def __init__(self, on_click, idle_image, *args, **kwargs):
|
||||||
kwargs['sensitive'] = True
|
super(SVGradientButton, self).__init__(idle_image, *args, sensitive=True, action=NullAction(), **kwargs)
|
||||||
kwargs['action'] = NullAction()
|
|
||||||
super(SVGradientButton, self).__init__(idle_image, *args, **kwargs)
|
|
||||||
self.width = 0
|
self.width = 0
|
||||||
self.height = 0
|
self.height = 0
|
||||||
self.on_click = on_click
|
self.on_click = on_click
|
||||||
|
Loading…
x
Reference in New Issue
Block a user