Set the size of the screen

Description:

The following example shows how to use the different sizes of the screen offered the appuifw module.

###################################################
#Python examples for AAU Mobile Phone Programming #
#(c) Mobile Phone Group                           #
###################################################
import appuifw
def set_Normal():
appuifw.app.screen='normal'
note(u'Normal Screen','info')
def set_Large():
    appuifw.app.screen='large'
    note(u'Large Screen','info')
def set_Full():
    appuifw.app.screen='full'
    note(u'Full Screen','info')
def main_menu():
  appuifw.app.menu = [(u"Normal", set_Normal),(u"Large",set_Large),(u"Full",set_Full)]
app.title=u"Screen"
main_menu()

Download

ex2.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