You Are Here:

Community: Wiki

This page was last modified on 30 October 2009, at 10:09.

Como bloquear e desbloquear o teclado em Python

From Forum Nokia Wiki

Original: How to lock and unlock keypad (Inglês)


ID Creation date 27 de agosto 2008
Platform S60 1ª Edição, S60 2ª Edição, S60 3ª Edição Tested on devices Nokia N95, Nokia E90
Category Python Subcategory Keypad


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

Resumo

Os trechos de código a seguir são usados para bloquear e desbloquear o teclado, respectivamente, usando Python Agora, há dois módulos com as mesmas funcionalidades: Misty 1.93 e pykeylock. Por favor note que Misty vai trabalhar com 3 telefones em uma única edição!


Bloqueia o teclado sem mostrar a notificação

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

Bloqueia o teclado e mostra a notificação

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

Desbloqueia o teclado sem mostrar a notificação

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

Desbloqueia o teclado e mostra a notificação

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

Código para testar se o estado do teclado está em bloqueado

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fGuaranaUIE2dE44ocumentationX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ