Grok extension to configure browser menus
Project description
This package allows you to register browser menus and menu items for browser views in Grok.
A menu is easily registered by creating a subclass of megrok.menu.Menu:
import megrok.menu.Menu class Tabs(megrok.menu.Menu): grok.name('tabs') grok.title('Tabs') grok.description('')
A view can then placed on a menu with the menuitem directive:
class Edit(grok.View): grok.title('Edit') grok.description("Change this object's data.") megrok.menu.menuitem('tabs') ...
The title and description directives used here specifie the menu item’s label and description. The menuitem directive takes at least one argument, the menu that the item is registered to be for. This can either be an identifier string or the menu class itself. Other optional parameters include icon, filter and order.
Changelog
0.1 (2008-07-12)
Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
megrok.menu-0.1.tar.gz
(5.8 kB
view hashes)