Mainloops

Kyle raises ThreadError

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

def my_loop():
    milliseconds = int(round(1000.0 / framerate))
       # process the world and update the canvas, 
    # letting the real mainloop() worry about details
    # ...
    tk.canvas.after(milliseconds, my_loop)
Name:
Mail: (not shown)

Please type this: