Mercurial > boomslang
comparison pyntnclick/endscreen.py @ 587:f20d211d2c91 pyntnclick
load_image() -> get_image() and more docs.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 17:02:26 +0200 |
parents | cf65e91b30b1 |
children |
comparison
equal
deleted
inserted
replaced
586:cf65e91b30b1 | 587:f20d211d2c91 |
---|---|
13 | 13 |
14 | 14 |
15 class EndScreen(Screen): | 15 class EndScreen(Screen): |
16 def __init__(self, shell, game_description): | 16 def __init__(self, shell, game_description): |
17 Screen.__init__(self, shell) | 17 Screen.__init__(self, shell) |
18 self.background = game_description.resource.load_image( | 18 self.background = game_description.resource.get_image( |
19 ('won', 'won.png')) | 19 ('won', 'won.png')) |
20 self._menu_button = EndImageButton('menu.png', 26, 500, | 20 self._menu_button = EndImageButton('menu.png', 26, 500, |
21 action=self.main_menu) | 21 action=self.main_menu) |
22 self._quit_button = EndImageButton('quit.png', 250, 500, | 22 self._quit_button = EndImageButton('quit.png', 250, 500, |
23 action=shell.quit) | 23 action=shell.quit) |