diff gamelib/menu.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 d9d1a9c4b833
children f67bc162d69e
line wrap: on
line diff
--- a/gamelib/menu.py	Sun Feb 12 01:27:53 2012 +0200
+++ b/gamelib/menu.py	Sun Feb 12 01:31:14 2012 +0200
@@ -19,7 +19,7 @@
 
     def add_image_button(self, rect, image_name, callback):
         image = self.resource.get_image(image_name)
-        widget = ImageButtonWidget(rect, image)
+        widget = ImageButtonWidget(rect, self.gd, image)
         widget.add_callback('clicked', callback)
         self.container.add(widget)