Fix syntax
authorNeil <neil@dip.sun.ac.za>
Sat, 10 Sep 2016 14:07:51 +0000 (16:07 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 10 Sep 2016 14:07:51 +0000 (16:07 +0200)
tabakrolletjie/widgets.py

index 51c449f10aaf2e04025e9bb85b91dfec100c9f9e..b1917e5abaf013f0bddef7c1391a99f15a40674a 100644 (file)
@@ -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):