Skip to content

addItem()

Add an item to the menu.

menu.addItem()

Parameters

menu.addItem(item='', action=None)
Parameter Type Default Description
item str '' The item's text, as shown in the menu.
action function None The function to call when the item is selected; it receives no parameters.