Return the type of the entry given by index: one of 'command', 'cascade', 'checkbutton', 'radiobutton', 'separator' or 'tearoff' (for the tear-off entry).
tkinter/Menu.type
Menu.type