Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 4 revisions

module omegaToolkit wraps the omegaTookit::ui::MenuManager

Offers a simple to use menu system to control applications.

Methods

Method(s) Description
static MenuManager createAndInitialize() Creates a new instance of the MenManager and initializes it
Menu createMenu(name) Creates a new menu and returns it. See Menu.
setMainMenu(Menu menu), Menu getMainMenu() Gets or Sets the main menu (it will be opened when a system-specific key or button will be pressed). See Menu

Examples

Basic

	# Create an empty menu and set it as the main menu
	mm = MenuManager.createAndInitialize()
	menu = mm.createMenu('menu')
	mm.setMainMenu(menu)
Clone this wiki locally