comparison gamelib/gamescreen.py @ 449:a30f91ee5b33

Stop running when we end the game
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 29 Aug 2010 00:31:03 +0200
parents 3dab4984cbd7
children 59f719cfccea
comparison
equal deleted inserted replaced
448:e3bf125d7f05 449:a30f91ee5b33
123 self.state.do_leave_detail() 123 self.state.do_leave_detail()
124 self.state.set_current_detail(None) 124 self.state.set_current_detail(None)
125 self._mouse_move(mouse.get_pos()) 125 self._mouse_move(mouse.get_pos())
126 126
127 def end_game(self): 127 def end_game(self):
128 self.running = False
128 self.screen.shell.show_screen(self.screen.shell.end_screen) 129 self.screen.shell.show_screen(self.screen.shell.end_screen)
129 130
130 131
131 class DetailWindow(Widget): 132 class DetailWindow(Widget):
132 def __init__(self, screen): 133 def __init__(self, screen):