On Jan 10, 2009, at 0:38 , E.R. Uber wrote:

Are there equivalents in Tkx to the following time delays in Tk:

The corresponding Tcl command is 'after' which is documented at 
http://www.tcl.tk/man/tcl8.5/TclCmd/after.htm
In Tkx that gives us:

 $id = $widget->after( $milliseconds, \&callback );

$id = Tkx::after($milliseconds, \&callback);

 $id = $widget->afterIdle( \&callback );

$id = Tkx::after_idle(\&callback);

 $widget->afterCancel( $id );

Tkx::after_cancel($id);

 $widget->repeat( $milliseconds, \&callback );

You have to do it yourself, either using a helper like the one Mike showed, or by just making your callback invoke Tkx::after() after it has done its work.

Regards,
Gisle

Reply via email to