changeset 141:dc4bb10cc54c

Fix crash.
author Neil Muller <drnlmuller@gmail.com>
date Wed, 02 Sep 2009 23:01:50 +0000
parents a7f24dcf9ecf
children 1597081e5a84
files gamelib/engine.py gamelib/mainmenu.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/engine.py	Wed Sep 02 22:57:26 2009 +0000
+++ b/gamelib/engine.py	Wed Sep 02 23:01:50 2009 +0000
@@ -141,7 +141,6 @@
 class GameOver(State):
     def init(self):
         """Setup everything"""
-        self.game.gameboard.tv.sun(True)
         self.game.generate_score()
 
     def event(self, e):
--- a/gamelib/mainmenu.py	Wed Sep 02 22:57:26 2009 +0000
+++ b/gamelib/mainmenu.py	Wed Sep 02 23:01:50 2009 +0000
@@ -8,7 +8,7 @@
 
 def add_main_menu(app):
     """Add the main menu to the app"""
-    for widget in app._get_widgets(app):
+    for widget in app.widgets[:]:
         app.remove(widget)
 
     main_menu = MainMenu()