diff pyntnclick/widgets/imagebutton.py @ 639:fdc63049b08c pyntnclick

Add game_description to the widgets,, since it looks a useful thing to do
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 12 Feb 2012 01:31:14 +0200
parents 08647ef4d324
children f67bc162d69e
line wrap: on
line diff
--- a/pyntnclick/widgets/imagebutton.py	Sun Feb 12 01:27:53 2012 +0200
+++ b/pyntnclick/widgets/imagebutton.py	Sun Feb 12 01:31:14 2012 +0200
@@ -6,10 +6,10 @@
 class ImageButtonWidget(Button):
     """An image that is also a button. Whatever next?"""
 
-    def __init__(self, rect, image):
+    def __init__(self, rect, gd, image):
         if not isinstance(rect, pygame.Rect):
             rect = pygame.Rect(rect, image.get_size())
-        super(ImageButtonWidget, self).__init__(rect)
+        super(ImageButtonWidget, self).__init__(rect, gd)
         self.image = image
 
     def draw(self, surface):