Start PyS60 Tutorials PyS60 Talks Applications Buzz Us Blog

 

Notification, Menus and Forms. Canvas, Content Handler and Queries. Set application title, tabs and set application body. Application screen size and Application Orientation. Text to speech, Playing and Recording sounds and setting volume. Taking a Photo, Recording Video and Using Viewfinder. Accessing Contacts and Adding - Deleting Contact entries. Using the e32 Module. Drawing, Opening and Editing an Image. Checking the Inbox, Reading SMS, Deleting SMS and Waiting for a SMS. Setting Logs, Retrieving Last missed calls, Retrieving Last SMS. Sending SMS, MMS, Email. Battery and Signal, Free Ram and Free Space, IMEI and firmware, phones, display, etc. Making a call, Hanging up calls, Waiting for a call. Displaying Text and showing an Image on a Window. Avoiding Python to be terminated by Red Key and Hiding the shell. Global Notifications and Queries.

 

 

      ADVERTISEMENT

 

 

 

 

Application screen size:

 

 

 

 

 

#Copyright (c) 2008 Pankaj Nathani

 

#Setting the application's screen size

 

#The available screen sizes are Normal, Large (meaning that only the softkeys pane is visible) and Full

 

import appuifw, e32

 

 

#Define the exit function

def quit():

    app_lock.signal()

appuifw.app.exit_key_handler=quit

 

#For normal:

appuifw.app.screen="normal"

e32.ao_sleep(5)

 

#For large:

appuifw.app.screen="large"

e32.ao_sleep(5)

 

#For full:

appuifw.app.screen="full"

 

app_lock=e32.Ao_lock()

app_lock.wait()

 

 

Application orientation:

 

 

 

#Copyright (c) 2008 Pankaj Nathani

 

#Setting the application's orientation

 

#From S60 3rd edition onwards you can set the orientation of the screen

 

import appuifw, e32

 

 

#Define the exit function

def quit():

    app_lock.signal()

appuifw.app.exit_key_handler=quit

 

appuifw.app.orientation='landscape'

#or, after waiting 5 seconds

e32.ao_sleep(5)

appuifw.app.orientation='portrait'

 

app_lock=e32.Ao_lock()

app_lock.wait()

 
 

       Copyright © Croozeus.com All rights reserved.                                                                                                                        Webdesign: Jackson Productions