Revision as of 23:27, 24 September 2009 by vkmunjpara (Talk | contribs)

Archived:How to create a timer in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Article Metadata
Tested with
Devices(s): Emulator
Platform(s): S60
Keywords: e32
Created: (19 Apr 2008)
Last edited: vkmunjpara (24 Sep 2009)

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.

Code Snippet

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)

Reference Link

75 page views in the last 30 days.