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

Method winfo_pointerx

Lib/tkinter/__init__.py:1308–1311  ·  view source on GitHub ↗

Return the x coordinate of the pointer on the root window.

(self)

Source from the content-addressed store, hash-verified

1306 self.tk.call('winfo', 'pixels', self._w, number))
1307
1308 def winfo_pointerx(self):
1309 """Return the x coordinate of the pointer on the root window."""
1310 return self.tk.getint(
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."""

Callers

nothing calls this directly

Calls 2

getintMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected