SHARE
TWEET

Untitled

a guest Feb 21st, 2012 17 Never
  1. #!/usr/bin/env python
  2.  
  3. from twisted.internet import reactor
  4. from random import triangular
  5. import pygamesupport
  6. import time
  7.  
  8. def doWork():
  9.         time.sleep( triangular( 0.001, 0.01, 0.005 ) )
  10.         return True
  11.  
  12. if __name__ == '__main__':
  13.         pygamesupport.install( doWork, fps = 50 )
  14.         reactor.run()
RAW Paste Data
Top