Example: Query & Note Screenshots

Description:

The following example was actually used to produce the screenshots to show the different forms of queries and notes present here.  Three different modules are included, namely the appuifw, graphics, and e32. Using simple loop structures, six queries and three note screenshots are made and save in a specified link.

###################################################
#Python examples for AAU Mobile Phone Programming #
#(c) Mobile Phone Group #
###################################################

import appuifw
import graphics
import e32
print u'Aalborg University'
print u'Mobile Phone Programming'
print u'Python on S60'
print u''
print u''
print u''
print u''
print u''
print u''
print u''
querylist = [u'text',u'number',u'date',u'time',u'code',u'query']

for element in querylist:
informationretrived = appuifw.query(element,element)
image=graphics.screenshot()
path=(u'c:\\Nokia\\Images\\'+element+u'Dialog.jpg')
image.save(path)

notelist = [u'info',u'error',u'conf']

for element in notelist :
informationretrived = appuifw.note(element,element)
image=graphics.screenshot()
path=(u'c:\\Nokia\\Images\\'+element+u'Note.jpg')
image.save(path)


Download:

ex1.py

Output:

The following screenshots are the outcome. Just click on the icons to enlarge them for a better view.

Output

Department of Electronic Systems | Aalborg University | Niels Jernes Vej 12 | DK-9220 Aalborg | Denmark
Phone: (+45) 9635 8695 | Fax (+45) 9815 1583 | E-mail ies(at)ies.aau.dk
Copyright © 2006 Department of Electronic Systems

Last update:02-10-2006