From 5a95f8b901e16c7db4bf22d6e55955c95ee7e866 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 16:07:51 +0200 Subject: [PATCH] Fix syntax --- tabakrolletjie/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabakrolletjie/widgets.py b/tabakrolletjie/widgets.py index 51c449f..b1917e5 100644 --- a/tabakrolletjie/widgets.py +++ b/tabakrolletjie/widgets.py @@ -73,7 +73,8 @@ class ImageButton(Button): super(ImageButton, self).__init__(self._img.get_size(), name, pos, padding) - def update_image(self, *imgparts, transform=NullTransform()): + def update_image(self, *imgparts, **kwargs): + transform=kwargs.pop("transform", NullTransform()) self._img = loader.load_image(*imgparts, transform=transform) def render(self, surface): -- 2.34.1