Categories: Python | S60 | Code Examples | How To
This page was last modified 12:45, 19 April 2008.
How to create a timer
From Forum Nokia Wiki
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)
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reminder application | fiftarina | Mobile Java General | 0 | 2006-01-16 04:00 |
| CAknWaitDialog not display ! | Jeepy | General Symbian C++ | 1 | 2003-02-03 08:11 |
| Callback from Polymorphic Dll to application | er_gps212 | General Symbian C++ | 0 | 2005-11-15 08:51 |
| Bluetooth disconnection on N70 | vtulai | Symbian Networking & Messaging | 8 | 2007-05-16 16:50 |
| SMS Timer | mobile_don | General Discussion | 5 | 2007-07-09 19:58 |
