Advertisement
here2share

# s60_Submenu_Demo.py

Oct 14th, 2016
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # s60_Submenu_Demo.py
  2.  
  3. import appuifw
  4.  
  5. print "Press Options To Show Menu"
  6.  
  7. def exit():l.signal()
  8.  
  9. def menu1():print "-- Submenu 1"
  10. def menu2():print "-- Submenu 2"
  11. def menu3():print "-- Submenu 3"
  12. def about():print "-- This is a simple submenu demo"
  13.  
  14. appuifw.app.menu=[(u"Menu", ( \
  15. (u"Submenu 1", menu1),
  16. (u"Submenu 2", menu2),
  17. (u"Submenu 3", menu3))),
  18. (u"About", about),
  19. (u"Exit", exit)]
  20.  
  21. l=appuifw.e32.Ao_lock()
  22. l.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement