Revision as of 17:05, 16 July 2008 by hartti (Talk | contribs)

Archived:Nested menus in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

The code snippet will explain how to create a menu inside a menu which means when you click a option in the main menu then there will again a new window with different options.

import appuifw,e32   #importing the necessary modules
def quit(): #define the exit event
print "Exit Key Pressed"
def tst():
print u"hi"
def bst():
print u"bye"
def tata():
appuifw.app.menu = [(u"yes",tst),(u"no",bst)]
appuifw.app.exit_key_handler = quit
def ford():
appuifw.app.menu = [(u"one",tst),(u"two",bst)]
appuifw.app.exit_key_handler = quit
appuifw.app.menu = [(u"Nano",tata),(u"Ikon",ford)]
appuifw.app.exit_key_handler = quit
app_lock = e32.Ao_lock()

Here is the link to python discussion board were the topic is discussed.

51 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.