Saturday, 12 January 2013

Mobile python - Install the downloaded .SIS files to your phone


1. Install the downloaded .SIS files to your phone

Connect your phone to your computer using the USB cable. Open the
Nokia PC Suite and select ‘Install applications’ (see Figure 2.2). First,
install the PyS60 interpreter and then the user interface for the PyS60
interpreter. Follow the on-screen instructions on the phone – for instance,
select ‘Yes’ if a security warning appears on the phone screen. Also make
sure the date is set correctly on the phone.
After the installation is complete, your phone shows the Python icon
on the desktop or inside one of the desktop folders (Figure 2.1). Your
phone is now ready to execute Python scripts. Let’s prepare a ‘Hello
world’ script.
2. Write a Python Script

You can write a Python script on your computer with any text editor.
Useful editors are, for example, ConTEXT or PythonWin which are
freely downloadable on the Internet, but Notepad also works. Symbian
developers can use Carbide.c++ with the PyDev plug-ins found at
http://pydev.sourceforge.net.
Write the following line in your text editor:

No comments:

Post a Comment