changeset 544:c9bdf145069f

credits screen now comes up properly when you click on the credits button.
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 03 Jun 2010 02:36:09 +0000
parents cb7ec12214a9
children bc7e3c3122d7
files demos/rpg/scripts/guicontroller.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/demos/rpg/scripts/guicontroller.py	Wed Jun 02 21:43:03 2010 +0000
+++ b/demos/rpg/scripts/guicontroller.py	Thu Jun 03 02:36:09 2010 +0000
@@ -64,7 +64,7 @@
 		self._widget.mapEvents(eventMap)
 	
 class Credits(Window):
-	def __init__(self, guicontroller):
+	def __init__(self, gamecontroller):
 		super(Credits, self).__init__(gamecontroller)
 		self._widget = pychan.loadXML('gui/credits.xml')
 
@@ -125,7 +125,7 @@
 		if self._credits:
 			self._credits.widget.show()
 		else:
-			self._credits = Credits(self)
+			self._credits = Credits(self._gamecontroller)
 			self._credits.widget.show()
 		
 	def hideCredits(self):