Return the index of a menu item identified by INDEX.
(self, index)
| 3660 | entryconfig = entryconfigure |
| 3661 | |
| 3662 | def index(self, index): |
| 3663 | """Return the index of a menu item identified by INDEX.""" |
| 3664 | i = self.tk.call(self._w, 'index', index) |
| 3665 | return None if i in ('', 'none') else self.tk.getint(i) # GH-103685. |
| 3666 | |
| 3667 | def invoke(self, index): |
| 3668 | """Invoke a menu item identified by INDEX and execute |