Popup Menu & Drop-down Menu Bar

you have done an amazing job that would be very helpful to a lot of us.

sorry if my question is silly.
How can I load the menu? :confused:

I am trying something like this:

import Menu
...
menu = Menu.DropDownMenu()

but is asking for another parameter

You need to put items in the menu. something like:

myPopupMenu=Menu.PopupMenu( items = (
(‘End Turn’, False, self.endTurnRequest),
(‘Exit Game’, False, self.exit)))

It comes with a sample scene and of course menu construction sample. Haven’t you run the module ?
And be sure to read the classes’ docstring.

[X] fixed menu item’s lower Z bound of multi-lines item text. Yes, multiple lines item text is possible.
[X] added grayed/disabled menu item images cache, so it won’t be converted to grayscale everytime the menu is created
[X] added shortcut key text support to menu item text, just append the key text to the end of menu item text, separated by “more than” sign (>). The shortcut key doesn’t do anything upon key event, so handle it yourself normally.

MINOR UPDATE :
now uses doMethodLater to run menu’s command