Extending PyS60 (Python on Symbian)
From Symbian Developer Community
Contents |
Introduction
As we have seen up to now, Python is a very extensive language. It allows access to many Symbian OS functions and encapsulates them in a very usable Python package. However, since the designers of Python cannot think of everything, there are always going to be functionality that someone will wish was accessible. Also, there will be new functions added to Symbian OS that might not be accessible from Python.
Python can be extended to access functionality in Symbian OS that was not built into Python. It is easy to extend Python through the use of the language C++. In addition, it is possible to access Python functionality in Symbian OS from a C++ application. This chapter will examine both of these possibilities.
We should state right up front that this chapter requires some fairly extensive understanding of how C++ is used to wrote applications in Symbian OS. Programming in C++ in Symbian OS requires knowledge of an extensive (and very useful) API that uses many new C++ concept and introduces many new data types and objects. We will use this API to discuss Python extensions and embedding.
The Basics
Start With an Example
PyObject
Comments
Sign in to comment…

