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

Method winfo_containing

Lib/tkinter/__init__.py:1237–1243  ·  view source on GitHub ↗

Return the widget which is at the root coordinates ROOTX, ROOTY.

(self, rootX, rootY, displayof=0)

Source from the content-addressed store, hash-verified

1235 self.tk.call('winfo', 'colormapfull', self._w))
1236
1237 def winfo_containing(self, rootX, rootY, displayof=0):
1238 """Return the widget which is at the root coordinates ROOTX, ROOTY."""
1239 args = ('winfo', 'containing') \
1240 + self._displayof(displayof) + (rootX, rootY)
1241 name = self.tk.call(args)
1242 if not name: return None
1243 return self._nametowidget(name)
1244
1245 def winfo_depth(self):
1246 """Return the number of bits per pixel."""

Callers 1

on_motionMethod · 0.80

Calls 2

_displayofMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected