Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # s60_Submenu_Demo.py
- import appuifw
- print "Press Options To Show Menu"
- def exit():l.signal()
- def menu1():print "-- Submenu 1"
- def menu2():print "-- Submenu 2"
- def menu3():print "-- Submenu 3"
- def about():print "-- This is a simple submenu demo"
- appuifw.app.menu=[(u"Menu", ( \
- (u"Submenu 1", menu1),
- (u"Submenu 2", menu2),
- (u"Submenu 3", menu3))),
- (u"About", about),
- (u"Exit", exit)]
- l=appuifw.e32.Ao_lock()
- l.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement