Author: DerekRhodes
Date: 2008-01-02 06:41:24 +0000 (Wed, 02 Jan 2008)
New Revision: 719

Modified:
   trunk/pysoy/examples/collide_blocks.py
Log:
added comment to this example, cam.fps returning NoneType

Modified: trunk/pysoy/examples/collide_blocks.py
===================================================================
--- trunk/pysoy/examples/collide_blocks.py      2008-01-02 06:40:12 UTC (rev 
718)
+++ trunk/pysoy/examples/collide_blocks.py      2008-01-02 06:41:24 UTC (rev 
719)
@@ -34,7 +34,8 @@
 if __name__ == '__main__' :
   while True:
     sleep(.1)
-    if cam.fps:
+    if cam.fps: # TypeError: 
+                #   int() argument must be a string or a number, not 'NoneType'
       fps.text = '%sfps' % str(int(cam.fps)).zfill(4)
     for bk in bks :
       p = bks[bk].position

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to