PyCMenu.InsertMenu

InsertMenu(pos, flags, id, value)

Inserts an item into a menu.

Parameters

pos : int

The position (zero-based) the item should be inserted.

flags : int

Flags for the new item.

id=0 : int/PyCMenu

The ID for a new menu item, or handle to a submenu

value=None : string/None

A string for the menu item.