Menu.remove

Removes an item from the menu. position gives the index of the item to remove. It is an error if position is not in range the range from 0 to one less than the number of items in the menu. It is not possible to remove items by identity since items are added Since 2.32

class Menu
void
remove
()

Parameters

position int

the position of the item to remove

Meta