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

Method find_closest

Lib/tkinter/__init__.py:3132–3137  ·  view source on GitHub ↗

Return item which is closest to pixel at X, Y. If several match take the top-most. All items closer than HALO are considered overlapping (all are closest). If START is specified the next below this tag is taken.

(self, x, y, halo=None, start=None)

Source from the content-addressed store, hash-verified

3130 return self.find('below', tagOrId)
3131
3132 def find_closest(self, x, y, halo=None, start=None):
3133 """Return item which is closest to pixel at X, Y.
3134 If several match take the top-most.
3135 All items closer than HALO are considered overlapping (all are
3136 closest). If START is specified the next below this tag is taken."""
3137 return self.find('closest', x, y, halo, start)
3138
3139 def find_enclosed(self, x1, y1, x2, y2):
3140 """Return all items in rectangle defined

Callers

nothing calls this directly

Calls 1

findMethod · 0.95

Tested by

no test coverage detected