PyCMenu.AppendMenu

AppendMenu(flags, id, value)

Appends a new item to the end of a menu. Python can specify the state of the menu item by setting values in nFlags.

Parameters

flags : int

Specifies information about the state of the new menu item when it is added to the menu. May be a combination of the win32con.MF_* values.

id=0 : int

Specifies either the command ID of the new menu item.

value=None : string/None

Specifies the content of the new menu item. If used, flags must contain win32con.MF_STRING.