diff pyntnclick/endscreen.py @ 586:cf65e91b30b1 pyntnclick

Use load_image where possible
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 11 Feb 2012 16:56:01 +0200
parents 7e4a20eb78b8
children f20d211d2c91
line wrap: on
line diff
--- a/pyntnclick/endscreen.py	Sat Feb 11 16:51:39 2012 +0200
+++ b/pyntnclick/endscreen.py	Sat Feb 11 16:56:01 2012 +0200
@@ -3,7 +3,6 @@
 # Victory screen for the game
 
 from albow.screen import Screen
-from albow.resource import get_image
 
 from pyntnclick.widgets import BoomImageButton
 
@@ -16,7 +15,8 @@
 class EndScreen(Screen):
     def __init__(self, shell, game_description):
         Screen.__init__(self, shell)
-        self.background = get_image('won', 'won.png')
+        self.background = game_description.resource.load_image(
+                ('won', 'won.png'))
         self._menu_button = EndImageButton('menu.png', 26, 500,
                 action=self.main_menu)
         self._quit_button = EndImageButton('quit.png', 250, 500,