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)








