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. Thanks for all your past and future contributions.

Archived:How to check for touch support in 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.

This PySymbian code snippet shows how to check whether a device has touch support.

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia 5800 XpressMusic
CompatibilityPlatform Security
Capabilities: )
Keywords: appuifw
Created: bogdan.galiceanu (24 Mar 2009)
Last edited: hamishwillee (30 May 2013)


This API is available in S60 3rd Edition and S60 5th Edition and was introduced in PySymbian 1.9.3.

Source code

import appuifw
#A try statement is used to prevent the code from crashing on versions prior to 1.9.3
if appuifw.touch_enabled():
appuifw.note(u"Touch is supported")
appuifw.note(u"Touch is not supported")
appuifw.note(u"Feature is not available")


A message indicating the availability of touch is displayed.

This page was last modified on 30 May 2013, at 02:51.
78 page views in the last 30 days.