Dabo.ui.callEvery

From Dabo Wiki
Jump to: navigation, search

Signature:

dabo.ui.callEvery(interval, func, *args, **kwargs)

Description:

Creates and returns a timer object that fires the specified function at the specified interval. Interval is given in milliseconds. It will pass along any additional arguments to the function when it is called.

Returns:

An instance of dabo.ui.dTimer

Comments:

This is a handy shortcut available for when you want a function to be called periodically under the control of a timer. You can call the timer's stop() and start() methods to turn the firing of the function off and on, or you can call the timer's release() method when you no longer need the function to be called.