comparison gamelib/gamescreen.py @ 460:59f719cfccea

Properly stop running
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 29 Aug 2010 01:21:02 +0200
parents a30f91ee5b33
children c72946d3a59a
comparison
equal deleted inserted replaced
459:786773393e6f 460:59f719cfccea
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.running = False
129 self.screen.shell.show_screen(self.screen.shell.end_screen) 129 self.screen.shell.show_screen(self.screen.shell.end_screen)
130 130
131 131
132 class DetailWindow(Widget): 132 class DetailWindow(Widget):
133 def __init__(self, screen): 133 def __init__(self, screen):