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

Method winfo_pointerxy

Lib/tkinter/__init__.py:1313–1316  ·  view source on GitHub ↗

Return a tuple of x and y coordinates of the pointer on the root window.

(self)

Source from the content-addressed store, hash-verified

1311 self.tk.call('winfo', 'pointerx', self._w))
1312
1313 def winfo_pointerxy(self):
1314 """Return a tuple of x and y coordinates of the pointer on the root window."""
1315 return self._getints(
1316 self.tk.call('winfo', 'pointerxy', self._w))
1317
1318 def winfo_pointery(self):
1319 """Return the y coordinate of the pointer on the root window."""

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected