Python Setup Notes

From Mobile Application Design
Jump to navigationJump to search

Python for S60

Python Home Page 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.

Installation

Installing PyS60 | Download page

Since we are using the N80 and N95 phones provided by Nokia which are Series 60 3rd Edition devices - we'll need to download the following files:

Grab the files here

  • Python
  • Python Script Shell
  • Documentation

Bluetooth the first two to your N80 / N95 and install them ahead of time.

Reference

Forum Nokia How To Guides for Python

Jurgen Scheible's Tutorial Site

Python Library Reference

Guido Van Rossum's Python Tutorial

Editors

PyDev (for Eclipse

Useful Tools

Miso - a utility library Kari Pulli's Python page

Simple Programs

Hello Python

import appuifw

appuifw.note(u"Well hello Python for Series60, you look nice... ", "info")

Exercises

  1. Rewrite the Zombie Detector from Week 2 in Python.
  2. Create a script which reads in a string and then sends it an SMS to your neighbour