Mercurial > sypikslang
comparison gamelib/gamegui.py @ 246:235b1faf590e
Update to load_image
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 13 May 2012 00:44:31 +0200 |
parents | c39599854a2d |
children | 8c237a830efe |
comparison
equal
deleted
inserted
replaced
245:c39599854a2d | 246:235b1faf590e |
---|---|
557 class DevelopmentWindow(GameStateWindow): | 557 class DevelopmentWindow(GameStateWindow): |
558 """Window for handling schematics research""" | 558 """Window for handling schematics research""" |
559 | 559 |
560 def __init__(self, screen, lab): | 560 def __init__(self, screen, lab): |
561 super(DevelopmentWindow, self).__init__(screen, lab.game) | 561 super(DevelopmentWindow, self).__init__(screen, lab.game) |
562 self.background_image = image.load( | 562 self.background_image = load_image('images/engineering_background.jpg') |
563 filepath('images/engineering_background.jpg')) | |
564 self.lab = lab | 563 self.lab = lab |
565 | 564 |
566 labbut = SwitchWinButton((150, 0), 'SCIENCE!!', lab) | 565 labbut = SwitchWinButton((150, 0), 'SCIENCE!!', lab) |
567 self.add_child(labbut) | 566 self.add_child(labbut) |
568 self.activity = None | 567 self.activity = None |