opal.core.menus

Opal provides classes and methods to define application menus programatically.

opal.core.MenuItem

An item in an application menu.

Arguments

Methods

for_user

A method that takes a user and returns True by default. Override this if you want menu items hidden for certain users.

opal.core.Menu

The menu for an Opal application. On initialization it will construct a menu for the current user, pulling items from the current app, and any plugins.