Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 15:20, 19 June 2008.

How to add a submenu

From Forum Nokia Wiki


Python can use submenu in menu options but it can be difficult to remember how to use them !

  • item 1
  • submenu
    • item 2
    • item 3

Identation has been used for a better understanding. Don't mismatch the parentheses ! Only when you click on submenu item2 and item3 will be displayed on screen.

import appuifw
 
appuifw.app.menu = [(u"item 1", item_cb),
                    (u"Submenu", (
                                   (u"sub item 2", subitem2_cb),
                                   (u"sub item 3", subitem3_cb) 
                                  )
                    )
]
# item1_cb, subitem2_cb, subitem3_cb are callback

Here is a screenshot to illustrate this submenu:

Image:Submenu.JPG

Related Discussions
Thread Thread Starter Forum Replies Last Post
在CodeWarrior中实现CVS版本控制时出现问题! plpch Symbian 0 2006-04-07 04:10
ADD-IN for mail client hassan21006 General Symbian C++ 4 2007-04-20 15:21
Is it possible to add ringtone to each contact Basu Mobile Java General 4 2008-05-05 09:07
Call a number from editor MAD4NOKIA Symbian Networking & Messaging 33 2007-08-10 15:12
how to add item to the top of listbox zikman23 Symbian User Interface 0 2005-01-13 11:38
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX