build_menu_item(menu,
parent=None,
id=None,
text='
' ,
tooltip='
' ,
icon=None,
fn=None)
| source code
|
Construct and return the menu sub-item.
- Parameters:
menu (wx.Menu instance) - The menu object to place this entry in.
id (int) - The element identification number.
text (None or str) - The text for the menu entry.
tooltip (str) - A tool tip.
icon (None or str) - The bitmap icon path.
fn (class method) - The function to bind to the menu entry.
- Returns: wx.MenuItem() instance
- The initialised wx.MenuItem() instance.
|