![]() The example application is gPodder (version 0.8). The porting of a real application is illustrated with step-by-step instructions. This section describes the issues involved in porting an existing PyGTK application to Maemo. When running the application, the result is the same as shown in Figure 3. To get started with Python, use the following sections to write a simple GTK+ application which creates and shows a window with a "Hello World!" text.Ĭreate a hello_world_1.py file with the following content. If for some reason this is not possible or you like to install it by yourself there's also directions for manual installation on. The easiest way is to visit using the Maemo device itself and clicking on the installation buttons there. But the good news is that it's pretty easy to install Python on them. Unfortunately, Maemo SDK and Maemo devices (Nokia 770 and N800, so far) doesn't come Python-ready out of the box. This is a difference from the standard Python behavior. pyo files even if the interpreted is called without the -O or -OO option. The following modules are only available in the SDK:ĭistutils, pdb, pydoc, BaseHTTPServer, SimpleHTTPServer, SimpleXMLRPCServer, CGIHTTPServer, cgi, cgitb, DocXMLRPCServeri, robotparser, smtpd, compile, encodings.cp*, encodings.mac*, doctest, unittest, config, symtable, tabnanny, timeit, trace and hotshot. The following modules have been removed but are supplied by other modules:ĭbhash, curses, posixfile, getpass, macpath, macurl2path, os2emxpath, nturl2path, pty, pyclbr, rexec, rlcompleter, statvfs, stringold, telnetlib, this, toaiff, tty, user, xdrlib, aifc, audiodev, sunaudio and sunau. Test, ctypes/test, sqlite3/test, email/test, _ctypes_test.so, _testcapi.so, linuxaudiodev.so, ossaudiodev.so, audioop.so, lib-tk, bsddb, idlelib. The tutorial assumes that you are developing from Scratchbox instead of directly using a Maemo device (such as a Nokia 770).Īs handheld devices have limited resources (when compared to desktop or notebook computers), several modules have been removed from Maemo's Python in order to reduce its footprint. For more information, see Setting Up and Testing Development Environment section in Maemo 3.0 Tutorial. The Maemo development environment is where you run your Maemo applications. Set up the Maemo development environment.To use the document, you must have a basic knowledge of Python and PyGTK (advanced knowledge is not required, but you must be able to write simple GTK programs in Python).īefore you start to write your own Python applications for Maemo, perform the following tasks:įor more information, see the Overview of the Maemo Platform section in Maemo 3.0 Tutorial This document explains how to develop applications for the Maemo platform using the Python programming language. 8.1 Distributing a "Hello PyMaemo!" application.6.6 Adjusting the Glade interface to fit into a small screen.6.3 Changing to HildonProgram and HildonWindow.6.1 Installing and running gPodder in Maemo.5 Example of a "Hello World!" application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |