MCPcopy Index your code
hub / github.com/python/cpython / index

Method index

Lib/tkinter/__init__.py:3662–3665  ·  view source on GitHub ↗

Return the index of a menu item identified by INDEX.

(self, index)

Source from the content-addressed store, hash-verified

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

Callers 1

deleteMethod · 0.95

Calls 2

callMethod · 0.45
getintMethod · 0.45

Tested by

no test coverage detected