This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 21st, 2012  |  syntax: Python  |  size: 0.29 KB  |  views: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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()
clone this paste RAW Paste Data