From 6b2766e66852881a1f06d4b74b597d2c51feae75 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 17 Nov 2023 03:46:34 +0100 Subject: [PATCH] Better pass kwargs this is not py2 anymore --- game/scripts/interface/color_picker.rpy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game/scripts/interface/color_picker.rpy b/game/scripts/interface/color_picker.rpy index 46d88932..9977e8aa 100644 --- a/game/scripts/interface/color_picker.rpy +++ b/game/scripts/interface/color_picker.rpy @@ -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