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

Method dnd_motion

Lib/tkinter/dnd.py:288–291  ·  view source on GitHub ↗
(self, source, event)

Source from the content-addressed store, hash-verified

286 self.dnd_motion(source, event)
287
288 def dnd_motion(self, source, event):
289 x, y = source.where(self.canvas, event)
290 x1, y1, x2, y2 = self.canvas.bbox(self.dndid)
291 self.canvas.move(self.dndid, x-x1, y-y1)
292
293 def dnd_leave(self, source, event):
294 self.top.focus_set() # Hide highlight border

Callers 2

dnd_enterMethod · 0.95
on_motionMethod · 0.80

Calls 3

whereMethod · 0.80
bboxMethod · 0.45
moveMethod · 0.45

Tested by

no test coverage detected