diff gamelib/mainmenu.py @ 141:dc4bb10cc54c

Fix crash.
author Neil Muller <drnlmuller@gmail.com>
date Wed, 02 Sep 2009 23:01:50 +0000
parents 1d73de63bd71
children 082868bea873
line wrap: on
line diff
--- 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()