Revision as of 01:09, 31 May 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:How to keep backlight on using PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

This snippet shows how to keep the phone's backlight on in Python.

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90
Platform(s): S60 1st Edition, S60 2nd Edition, S60 3rd Edition
Keywords: e32
Created: cyke64 (19 Mar 2007)
Last edited: hamishwillee (31 May 2013)

Source code

import appuifw, e32
app_lock = e32.Ao_lock()
#Define the exit function
def quit():
#Cancel the timer when the user exits, if it has not expired
appuifw.app.exit_key_handler = quit
#Instantiate a timer
t = e32.Ao_timer()
def light_on():
#Reset the user inactivity time, turning the backlight on
#Set the timer to call this function every few seconds
t.after(10, light_on)
#Wait for the user to request the exit


The device's backlight is turned on with each passing of the specified number of seconds.

This page was last modified on 31 May 2013, at 01:09.
78 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.