projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee6c1bb
)
Fix syntax
author
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 14:07:51 +0000
(16:07 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 14:07:51 +0000
(16:07 +0200)
tabakrolletjie/widgets.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/widgets.py
b/tabakrolletjie/widgets.py
index 51c449f10aaf2e04025e9bb85b91dfec100c9f9e..b1917e5abaf013f0bddef7c1391a99f15a40674a 100644
(file)
--- 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):