Categories: S60 | Python | Code Examples | UI
This page was last modified 17:05, 16 July 2008.
Menu inside a menu
From Forum Nokia Wiki
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" app_lock.signal() 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() app_lock.wait()
Here is the link to python discussion board were the topic is discussed.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to desactivate the Menu Key ?... | GeKI | Symbian User Interface | 3 | 2007-10-22 10:02 |
| Adding a menu to a FEP | stephenwheelan | Symbian User Interface | 5 | 2006-05-02 17:06 |
| Python for S60 1.3.19 released | jplauril | Python | 6 | 2007-03-22 11:58 |
| Problem with sub menu using LIST BOX | rbs | General Symbian C++ | 1 | 2007-01-05 17:34 |
| Dynamic menu pane/bar changing?.. | БојанКВ | Symbian User Interface | 5 | 2008-05-06 08:41 |
