You Are Here:

Community: Wiki

This page was last modified on 20 September 2009, at 06:52.

How to lock and unlock keypad

From Forum Nokia Wiki

Reviewer Approved   



ID Creation date 27 August 2008
Platform S60 1st Edition, S60 2nd Edition, S60 3rd Edition Tested on devices Nokia N95, Nokia E90
Category Python Subcategory Keypad


Keywords (APIs, classes, methods, functions): misty, Pykeylock

Overview

The following code snippets are used to lock and unlock the keypad respectively using Python There are now two modules with the same functionalities : misty 1.93 and pykeylock. Please note that misty will work for 3rd edition phones only !


Locks the Keypad without showing a notification

import misty
import pykeylock
 
misty.lock_keypad_silent()
pykeylock.Lock()

Locks the Keypad and show a notification

import misty
import pykeylock
 
misty.lock_keypad()
pykeylock.Lock_WithNote()

Unlocks the Keypad without showing a notification

import misty
import pykeylock
 
misty.unlock_keypad_silent()
pykeylock.Unlock()

Unlocks the Keypad and show a notification

import misty
import pykeylock
 
misty.unlock_keypad()
pykeylock.Unlock_WithNote()

Code to test the Keypad locking status

import misty
import pykeylock
 
misty.unlock_keypad_silent()
print misty.keypad_locked() # 0
misty.lock_keypad_silent()
print misty.keypad_locked() # 1
 
pykeylock.Unlock()
print pykeylock.LockStatus() #0
pykeylock.Lock()
print pykeylock.LockStatus() #1

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
User Rating: qfnZuserE5FratingQNx5E2E0000X