Namespaces
Variants
Actions
(Redirected from How to make hello world)

Archived:How to make hello world using PySymbian

Jump to: navigation, search
Archived.png
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.
Article Metadata

Tested with
Devices(s): N95 8GB, N96

Compatibility
Platform(s): S60

Article
Keywords: appuifw, e32
Created: cyke64 (16 Mar 2007)
Last edited: hamishwillee (08 May 2013)


Contents

Overview

This is the first basic program in PySymbian. PySymbian is a very easy to learn language and one can develop mobile applications very rapidly using PySymbian.

Preconditions

1. Download the S60 SDK from Nokia Developer SDK section.

2. Download Latest Python SDK from maemo Garage.

3. Install PySymbian by following this article.

Code snippet

The code below shows how to write a simple hello world application in PySymbian.

import appuifw
import e32
 
def quit(): # define the quit function
app_lock.signal()
 
 
appuifw.app.title = u"Hello World" #set the application title
 
appuifw.note(u"Hello World", 'info') #displays a hello world dialog
 
app_lock = e32.Ao_lock()
appuifw.app.exit_key_handler = quit
app_lock.wait()

Postconditions

Here is the screenshot:

Hello.jpg

This page was last modified on 8 May 2013, at 10:09.
125 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved