Python
  Home arrow Python arrow Mobile Programming in Python using PyS60: Getting Started
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PYTHON

Mobile Programming in Python using PyS60: Getting Started
By: A.P.Rajshekhar
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 11
    2007-10-17


    Table of Contents:
  • Mobile Programming in Python using PyS60: Getting Started
  • Dynamically loadable libraries or extensions
  • Accessing Services, Step By Step
  • PyS60 Programming in the Real World

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Mobile Programming in Python using PyS60: Getting Started
    ( Page 1 of 4 )

    Smart phones are becoming a common sight nowadays. Above all, the "smartness" of smart phones come from the fact that they can be programmed. In other words, one can develop custom applications for these mobile devices and use them in the devices. This article covers the basics of developing these kinds of applications in a variant of Python.

    Almost all languages, from C to Java and Perl to Ruby, provide APIs to access and create services for smart phones. Among them, nothing, at present, can beat the flexibility and ease-of-development that Python provides. Symbian is the most common OS used by smart phones. The Symbian port of Python is known as pyS60.

    in this discussion I will be focusing on the basics of pyS60. The first two sections will focus on answering the question "what is pyS60?" In the third section, I will detail the steps in developing and deploying a pyS60 application. In the last section, a real world application will be developed. That sets the outline for this discussion.

    What is PyS60?

    PyS60, also known as Python for S60 version, is a port of Python, released by Nokia for Symbian OS and targeted at the N60 series of mobiles. The libraries provided by PyS60 can be divided into broad categories:

      1. Built-in libraries

      2. Dynamically loadable libraries

    Since PyS60 is essentially an extension to the standard Python, it is known as the Python for S60 extension. Hence the categories can also be called built-in extensions and dynamically loadable extensions. Here are the details.

    Built-in libraries or extensions are one of the two native C++ extensions available in PyS60. These provide non-proprietary APIs to Symbian 60’s (S60) platform. The built-in extensions again are divided into two modules, e32 and appuifw.

    The e32 module provides access to those services that are not available in standard Python libraries. Essentially, this module is built into the Python interpreter to provide access to the Platform services of S60. These services include the timer service (Ao_timer class), system information (sysinfo module and its classes), listing of the drives (drive_list method) and more.

    By using the appuifw module, the developer can access the API related to the UI elements of the S60 platform. The main UI elements include Text, Listbox, Canvas, and so forth. Using the elements a GUI can be constructed either as part of a window or as the part of screen itself. If the elements or controls are part of the window then the window becomes the container.



     
     
    >>> More Python Articles          >>> More By A.P.Rajshekhar
     

       

    PYTHON ARTICLES

    - Tuples and Other Python Object Types
    - The Dictionary Python Object Type
    - String and List Python Object Types
    - Introducing Python Object Types
    - Mobile Programming using PyS60: Advanced UI ...
    - Nested Functions in Python
    - Python Parameters, Functions and Arguments
    - Python Statements and Functions
    - Statements and Iterators in Python
    - Sequences and Sets in Python
    - Python Expressions and Operators
    - Dictionaries, Variables and Statements in Py...
    - Data Types in Python
    - The Python Language
    - SSH with Twisted





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT