×
Namespaces

Variants
Actions

Archived:How to lock and unlock keypad using PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

Acredita-se que este artigo ainda seja válido no contexto original (quando ele foi escrito)


These code snippets show how to lock and unlock the keypad using PySymbian. Note that there are now two modules with the same functionality: misty 1.93 and pykeylock. Please note that misty will work for 3rd edition phones only!

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90
Compatibility
Platform(s): S60 1st Edition, S60 2nd Edition, S60 3rd Edition
Platform Security
Capabilities: )
Article
Keywords: misty, Pykeylock
Created: User:Kandyfloss (23 Apr 2008)
Last edited: hamishwillee (31 May 2013)

Contents

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
This page was last modified on 31 May 2013, at 04:04.
85 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.

×