Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # skeleton_layout.py
- ###### import all modules needed
- import appuifw
- import e32
- ###### set the screen size (in this example, to large)
- appuifw.app.screen='large'
- ###### create a menu and the callback functions for the menu
- def function_A():
- print "function_A"
- def function_B():
- print "function_B"
- def function_C():
- print "function_C"
- appuifw.app.menu = [(u"Function A", function_A),(u"Function B", function_B),(u"Function C", function_C)]
- ##### create and set an exit key handler
- def exit_key_handler():
- app_lock.signal()
- ### appuifw.app.set_exit()
- ##### set the title
- appuifw.app.title = u"New Title"
- #####
- app_lock = e32.Ao_lock()
- appuifw.app.exit_key_handler = exit_key_handler
- app_lock.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement