equivalent to Tcl 'after' command?

Roy Smith roy at panix.com
Thu Apr 22 14:17:14 EDT 2004


In article <huThc.54272$9V6.15414 at newssvr25.news.prodigy.com>,
 Mark Harrison <mh at pixar.com> wrote:

> 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"}

You want to took at the Timer objects that are part of the threading 
module

http://www.python.org/doc/current/lib/timer-objects.html



More information about the Python-list mailing list