You Are Here:

Community: Wiki

This page was last modified on 28 May 2009, at 10:03.

How to do source code variation

From Forum Nokia Wiki


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

Introduction

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.

Code Snippet

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")

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