Freevo Plugin Writing HOWTO: Writing your own plugins for Freevo | ||
---|---|---|
Prev | Chapter 3. The Different Types of Plugins | Next |
A MainMenuPlugin is a plugin that adds items to the main menu. The main menu can also be the main menu for the different types of media, like the video main menu. E.g. if you put your plugin in video/plugins, it will be shown in the video main menu. The user can also force which kind of menu by setting the type when calling plugin.activate.
Examples for this kind of plugin are all items in the main menu and the rom_drives plugin, adding all possible rom drives to the sub main menus.
A MainMenuPlugin only needs to define the function
def items(self, parent):returning a list of items for the menu.
TODO: add an example