| ID | Creation date | May 26, 2009 | |
| Platform | S60 3rd Edition | Tested on devices | Nokia N82 |
| Category | Python | Subcategory | appuifw |
| Keywords (APIs, classes, methods, functions): list, sort |
This PyS60 code snippet demonstrates how to do source code variation for PyS60 1.4.5 (and earlier) and PyS60 1.9.0 (and newer). You might want to do code variation, because 1.4.5 is the latest stable release and 1.9.x is the current on-going development project. Differences in your script can be small, so variating source code might be easier, faster and more efficient than writing two different versions.
Note that PyS60 1.9.x supports only S60 3rd Edition (and later) devices and that its functionality is wider and more uptodate than PyS60 1.4.5 version. However PyS60 1.4.5 supports additionally also S60 2nd Edition devices.
if e32.pys60_version_info > (1,9):
# PyS60 1.9.x and above
appuifw.note(u"1.9.x")
else:
# Pys60 1.4.x or below
appuifw.note(u"1.4.x")
No related wiki articles found