equivalent to Tcl 'after' command?

Mark Harrison mh at pixar.com
Thu Apr 22 13:42:37 EDT 2004


I'm writing some event-driven programs, and I would like
to do the equivalent of the Tcl 'after' command, e.g.:

	after 1000 {puts "one second has elapsed"}

1.  What's the most canonical way of doing this?

2.  What's the best reference that talks about non-gui event loop
    programming in Python?

Many TIA!
Mark

-- 
Mark Harrison
Pixar Animation Studios



More information about the Python-list mailing list