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

Method __init__

Lib/tkinter/dnd.py:271–275  ·  view source on GitHub ↗
(self, root)

Source from the content-addressed store, hash-verified

269class Tester:
270
271 def __init__(self, root):
272 self.top = tkinter.Toplevel(root)
273 self.canvas = tkinter.Canvas(self.top, width=100, height=100)
274 self.canvas.pack(fill="both", expand=1)
275 self.canvas.dnd_accept = self.dnd_accept
276
277 def dnd_accept(self, source, event):
278 return self

Callers

nothing calls this directly

Calls 1

packMethod · 0.45

Tested by

no test coverage detected