diff engine/python/fife/extensions/fife_timer.py @ 487:7f1c42b66aa4

Moved the shooter demo Timer() class to helpers.py. Changed the formula that calculates the length of the audio clip to be correct. The shooter demo now demonstrates the use of the audio clip callbacks correctly. Fixed the fife_timer extension to actually work.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 03 May 2010 19:58:16 +0000
parents 64738befdf3b
children 23d01971e9c2
line wrap: on
line diff
--- a/engine/python/fife/extensions/fife_timer.py	Mon May 03 15:56:00 2010 +0000
+++ b/engine/python/fife/extensions/fife_timer.py	Mon May 03 19:58:16 2010 +0000
@@ -22,6 +22,7 @@
 # ####################################################################
 
 from fife import fife
+from fife.extensions.pychan.tools import callbackWithArguments as cbwa
 
 """
 Convenient timers
@@ -92,8 +93,7 @@
 	@return The timer.
 	"""
 	timer = Timer(delay)
-	def cbwa(c, *args):
-		c(*args)
+
 	def real_callback(c, t):
 		t.stop()
 		c()