| ID | ... | Creation date | 19 April 2008 |
| Platform | S60 | Tested on devices | Emulator |
| Category | Python | Subcategory | Timers |
| Keywords (APIs, classes, methods, functions): e32 |
Here is a code snippet that is useful for creating a timer in Python
. A timer can call a function repeatedly after a specific delay, as configured.
import e32
timer = e32.Ao_timer()
delay = 4.0
def do_something():
# your code to be repeated every interval goes here
timer.after(delay, do_something)
# To start the timer once
timer.after(delay, do_something)
No related wiki articles found