The Menu class has this constructor:
title='UserMenu',parent=None,before=None,items=None) |
If parent==None, the menu is a standalone popup menu. If parent is given, the menu will be inserted in the parent menu. If parent==GD.GUI, the menu is inserted in the main menu bar.
If insert == True, the menu will be inserted in the main menubar before the item specified by before. If before is None or not the normalized text of an item of the main menu, the new menu will be inserted at the end. Calling the close() function of an inserted menu will remove it from the main menu.
If insert == False, the created menu will be an independent dialog and the user will have to process it explicitely.
Menu objects have the following methods:
) |
) |