Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Como verificar se o aparelho tem tela sensível ao toque com PySymbian

From 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.

Article Metadata

Testado com
Aparelho(s): Nokia N95, Nokia 5800 XpressMusic

Plataforma(s): S60 3rd Edition, S60 5th Edition

Palavras-chave: appuifw
Por lpvalente
Última alteração feita por hamishwillee em 07 May 2013



Este trecho de código mostra como verificar se é possível usar eventos de toque ('touch screen') na aplicação, com Python.


A API está disponível para S60 3rd Edition e S60 5th Edition a partir do PySymbian 1.9.3.

Código fonte

import appuifw
# O bloco try/except é usado para evitar que a aplicação voe caso a versão do Python seja anterior à 1.9.3
if appuifw.touch_enabled():
appuifw.note(u"Eventos de toque podem ser usados")
appuifw.note(u"Eventos de toque NÃO podem ser usados")
appuifw.note(u"Funcionalide não disponível")


Uma mensagem é exibida, dizendo se a funcionalidade está ou não disponível.

This page was last modified on 7 May 2013, at 11:05.
52 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.