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

Method winfo_pathname

Lib/tkinter/__init__.py:1295–1301  ·  view source on GitHub ↗

Return the pathname of the widget given by ID.

(self, id, displayof=0)

Source from the content-addressed store, hash-verified

1293 return self.tk.call('winfo', 'parent', self._w)
1294
1295 def winfo_pathname(self, id, displayof=0):
1296 """Return the pathname of the widget given by ID."""
1297 if isinstance(id, int):
1298 id = hex(id)
1299 args = ('winfo', 'pathname') \
1300 + self._displayof(displayof) + (id,)
1301 return self.tk.call(args)
1302
1303 def winfo_pixels(self, number):
1304 """Rounded integer value of winfo_fpixels."""

Callers 1

test_winfo_pathnameMethod · 0.80

Calls 2

_displayofMethod · 0.95
callMethod · 0.45

Tested by 1

test_winfo_pathnameMethod · 0.64