Invoke the action of the entry given by index, as if it had been clicked. Nothing happens if the entry is disabled. If the entry has a command associated with it, the result of that command is returned; otherwise the result is an empty string.
tkinter/Menu.invoke
Menu.invoke