Mercurial > pyntnclick
diff gamelib/endscreen.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 | a3b82af01749 |
children | bcc9277a23e6 |
line wrap: on
line diff
--- a/gamelib/endscreen.py Sun Feb 12 01:27:53 2012 +0200 +++ b/gamelib/endscreen.py Sun Feb 12 01:31:14 2012 +0200 @@ -16,7 +16,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)