menu positioning for the plugins works now
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 11 Jan 2006 20:03:06 +0000 (20:03 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 11 Jan 2006 20:03:06 +0000 (20:03 +0000)
commitf3643e16acdb33f7a05ef3ce3faa45142a727e37
tree67094884c58069976a20a7e02b0d849a5cca5897
parent38be97ebc8fd897de166a2f641df5b7c175dcb6f
menu positioning for the plugins works now

example:
def getMenuRegistrationList():
list = []
list.append(("setup", 2, "Softwareupdate", "Example"))
list.append(("mainmenu", 0, "Foo", "Bar"))
return list

this means, that we have 2 menu entries:
a menu entry "Softwareupdate" is added to the setup menu on position 2 which calls the Example screen of the plugin
and a menu entry Foo is added to the main menu on the first position which calls the screen Bar
lib/python/Components/PluginComponent.py
lib/python/Screens/Menu.py