From: Neil Date: Sat, 10 Sep 2016 14:07:51 +0000 (+0200) Subject: Fix syntax X-Git-Tag: tabakrolletjie-v1.0.0~97^2~1 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=5a95f8b901e16c7db4bf22d6e55955c95ee7e866;p=tabakrolletjie.git Fix syntax --- 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):