This page was last modified 05:16, 14 June 2008.
Category:Python
From Forum Nokia Wiki
This page presents all the articles in the Forum Nokia Wiki that include the category Python. If new to this technology, besides some basic information presented here, check also the Python for S60 Technology Landing Page in Forum Nokia.
We currently have 207 Python articles in this Wiki.
Recently Edited and Most Viewed Python Articles
Overview
Python for S60 is Nokia's port of the Python language to the S60 smartphone platform. In addition to the standard features of the Python language, PyS60 provides access to many of the phone's uniquely smartphone-y functions, such as camera, contacts, calendar, audio recording and playing, TCP/IP and Bluetooth communications and simple telephony.
Other that Python for S60 there are three more or less advanced Python versions for UIQ:
A very old version for UIQ based on Python 2.3.3 The console version already builds for other devices, including S90, S80 and S60 fisrt edition.
This is Python for UIQ 2.1 and UIQ 3 v0.1 (hereafter PyUIQ). This preliminary port is based on Python for S60 (hereafter PyS60) port created by Nokia Corporation which is based on Python 2.2.2.
It's Python over PersonalJava.
Python S60 is open source, under Apache 2 and Python licenses. You can download the source for the latest release from SourceForge.
Latest News
3 June 2008: Forum Nokia Publishes an eLearning module for Python for S60
5 May 2008: Python for S60 1.4.3 FINAL has been released Officially
Change history from PyS60 1.4.3 from 1.4.2'
- Added functionality to set the recipient name in messaging.sms_send()
- Added to the positioning module the last_position() function which fetches the last obtained position without powering up the GPS device.
- Increased the maximum length of the message that can be sent using messaging.sms_send() to 39015 characters.
Corrected defects/Bug Fixes:
- Positioning.stop_position() does not shutdown GPS
- SMS content is truncated to the first 256 characters.
Installation
See Installing PyS60. Which package to get, how to push scripts to the phone, using the emulator, using the Bluetooth console etc.
Applications
See Python S60 applications. Also, grabbing the package source is useful, as there are some interesting sample application embedded in the source tree. If you are a novice trying to figure out how to write your first program on a mobile phone then click novice How To.
Creating Standalone Applications
Python has all the advantages of an interpreted language, but you can create standalone applications for the S60 platform. Here are some links.
- Guide for creating a standalone application in 2rd edition
- Creating standalone application in 3rd edition
- More links to creating a standalone app
Documentation
Extension modules
Python for S60 support most of the standard Python 2.2 modules (not all provided with python S60 !). These modules and some others (changed to adapt them to particulalities of Python for S60) are written in pure python code ...
for a list of adapted python module that are available see: python S60 modules.
Python for S60 supports the Python/C API so you can create your own dynamically loadable extension modules (.PYD's) to extend the functionality of the interpreter. See How to create PyS60 extension modules.
A list of native extension modules are available:
Compiling PyS60
So you want to "roll your own" PyS60 interpreter from source? Check out Compiling Python S60.
Getting help
The Python for S60 discussion board at Forum Nokia is THE place for chatting about Python for S60 related matters. The archives of the board may already contain the answer you are looking for. Try the search function before asking and you may save lots of time.
For more informal discussions, try the Python S60 IRC channel. look documentation ?
Tutorials & Books
Tutorials
- Python for the S60 Platform eLearning.
Learn about Python, the open source programming language optimized for rapid application prototyping. It is an object-oriented scripting language that is easy to learn and use and supported on many platforms. This module gives students an idea of where and how the language can be used, and show how to write Python programs that run on the S60 platform. The module assumes some familiarity with object-oriented programming languages.
- To get started with Python, read the Python 2.2.2 (PyS60 core) tutorial and library reference
- This "Easy to learn" Tutorial by mobilenin gives you as smooth start into learning to program PyS60 - even without any prior knowledge of Python or S60.
- A description with examples of the most basic Python and PyS60 features, for beginners: Basic Python Elements
Books
- "Dive into Python" is an excellent free book about Python programming. Available in different languages (English, Italian, French, Spanish, Chinese, Korean, Russian) and formats, it also includes source codes!
- Mobile Python: Rapid prototyping of applications on the mobile platform (available since 16 October 2007 !)
Code Examples for Python
- A Python program to show availble drive space
- Different ways of reading a file

- How to create an partly transparent object,text .

- Example of pycamera

- Font On Image Using Pys60

- How to import a variable from a module

- How to record a sound
- How to set/unset read sms status

- How to use globalui

- How to search a file extension

- How to prevent python closing on red keypress

- How to use contact database
- PyCamera - a tabs interface camera
- How to set the device's time
- How to add a submenu
- Cell id and alarm
- Using the Easy API
- Developing Python Applications for maemo
- Python Hildon Widgets - Part 1
- Python Hildon Widgets - Part 2
- A simple stopwatch example
- Python Input and Output
- Using Topwindow
- How to make vibration
- How to execute another script from a script
- How to Not to use Timers

- PyS60 Google Maps API

- How to create and extract archives
- How to send email

- Displaying a thumbnail gallery
- How to open a file with the designated application

- Touch Typing Tutor
- Semantic Address Book
- Open C: SMS Crypto Example
- Python Fonts
- How to list all the installed applications
- How to discover bluetooth device
- How to get the bluetooth address of phone
- How to preview all available fonts
- Python debugging techniques
- How to use the sysagent module
- Inbox Sender
- How to edit an image
- How to add a text to an image
- How to use the envy module
- How to make py to sis for 3rd Editon devices
- How to change screen orientation
- Count Down - small app using Pys60
- How to get current date and time
- How to update Python script
- How to lock and unlock keypad
- A simple camera application using the view finder
- How to Reboot the phone
- How to detect SMS in Outbox
- How to create a timer
- How to calculates the transparency for icons
- How to get phones IP address using PyS60
- How to read and write settings to a file
- How to handle file metadata
- How to send MMS
- How to open another application
- Exception Harness
- Sms Spammer - small app using Pys60
- How to sort contacts
- Sms Assistant - small app using Pys60
- Elocation module
- How to scan for Wlan
- Sms Timer - small app using Pys60
- Formatting strings on pys60
- Setting default access point in python
- How to display unread messages
- How to connect Mobile to PC
- How to compare time
- Axyz module example
- How to record a call
- How to send text from Mobile to PC
- A simple Tic-Tac-Toe game
- How to use easily files and directories
- Network Search
- A simple screensaver
- How to check if the application is in background
- How to take a picture and send it over bluetooth
- How to open browser programmaticaly
- How to get system info on smartphone
- How to handle user inactivity
- How to discover the amount of free RAM in python
- How to handle keypress easily
- How to use logs
- How to get number using contact id
- How to get last missed call
- How to connect device to Wifi
- How to record video
- NMEA (GPS) Location Viewer
- How to get info on cell location
- How to unpack .sis file
- How to embed Python in Symbian C++
- How to compile PyS60 scripts and libraries to bytecode
- How to take a photo
- How to find all symbian databases
- How read SMS in the inbox
- Text to speech in Python
- How to switch profiles
- How to use an image as background
- Save sms to different files
- How to use icon in listbox
- A simple calculator
- How to define a function in Python
- How to calling python from C
- How to write the content of appuifw.Text() into a file
- How to wrap text in canvas screen
- How to view icons in a mbm file
- How to use udp broadcast
- How to use the camera viewfinder
- How to use tabs
- How to use quotation in SQL
- How to use easily font in text
- How to use calendar
- How to use SQL
- How to use Forms
- How to upload a file to server with multipart/form-data
- How to upload a file to server with application/x-www-form-urlencoded
- How to take a screenshot
- How to send files using bluetooth
- How to switch application in foreground
- How to store settings in XML files
- How to send SMS
- How to scroll an over sized image on canvas
- How to save sms list
- How to plot sparklines
- How to plot graph
- How to play a tone sound
- How to play a multimedia file
- How to pause application running
- How to make hello word
- How to make an interactive SQL shell
- How to make a singleton in Python
- How to make a phone call
- How to make Python syntax coloring
- How to know cpu speed
- How to keep screen light on
- How to keep light on in python
- How to get phone model
- How to get id3 tag from a MP3 file
- How to get default palette table of mbm file
- How to generate and play midi notes
- How to format time
- How to enter non-ascii character
- How to easy handle date and time
- How to draw on canvas
- How to draw directly to the phone screen
- How to draw an icon on canvas
- How to draw a circle
- How to do simple multitasking
- How to display transparent image on canvas
- How to create a daemon process
- How to create an empty listbox
- How to count number of bitmaps in a mbm file
- How to control a robot from PyS60
- How to choose a phone number
- How to change screen size
- Take a photo at regular intervals
- A 100% Python implemented Listbox base class
- Python eggs
- How to create a simple Python listbox
- Dump file system
- Translate with babelfish
- A simple ORM SQL for python
- A simple random rectangle demo
- A color picker in python
- Using a cursor
- Mandelbrot set fractals example
- A simple timeout application
- Sine wave interference patterns
- Wolfram style cellular automata
- Motion detection with camera
- Make the Guido's MClock in Python
Known Issues for Python
Tips & Tricks for Python
Video Demo reels
- Comments by people who use PyS60 (length: 4 min.)
(*.AVI 115 MB) (Flash 8) (*.MOV) 255 MB
- See what Art & Design Students do with PyS60 (length 15min.)
(*.AVI 184 MB) (Flash 8) (*.MOV) 255 MB
- See what technical Students do with PyS60 (length 12min.)
(*.AVI 115 MB) (Flash 8) (*.MOV 145 MB)
(previous 200) (next 200)
Articles in category "Python"
There are 159 articles in this category.
Media in category "Python"
There are 41 files in this category.
