Mercurial > pyntnclick
diff gamelib/endscreen.py @ 803:bcc9277a23e6 pyntnclick
Refactor widget positioning API. Remove unused widgets
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sun, 27 Jan 2013 14:52:16 +0200 |
parents | fdc63049b08c |
children | f95830b58336 |
line wrap: on
line diff
--- a/gamelib/endscreen.py Sun Jan 27 14:50:33 2013 +0200 +++ b/gamelib/endscreen.py Sun Jan 27 14:52:16 2013 +0200 @@ -14,9 +14,9 @@ self.add_image_button((26, 500), 'won/menu.png', self.main_menu) self.add_image_button((250, 500), 'won/quit.png', self.quit) - def add_image_button(self, rect, image_name, callback): + def add_image_button(self, pos, image_name, callback): image = self.resource.get_image(image_name) - widget = ImageButtonWidget(rect, self.gd, image) + widget = ImageButtonWidget(pos, self.gd, image) widget.add_callback('clicked', callback) self.container.add(widget)