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

Function test

Lib/tkinter/dnd.py:304–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302
303
304def test():
305 root = tkinter.Tk()
306 root.geometry("+1+1")
307 tkinter.Button(command=root.quit, text="Quit").pack()
308 t1 = Tester(root)
309 t1.top.geometry("+1+60")
310 t2 = Tester(root)
311 t2.top.geometry("+120+60")
312 t3 = Tester(root)
313 t3.top.geometry("+240+60")
314 i1 = Icon("ICON1")
315 i2 = Icon("ICON2")
316 i3 = Icon("ICON3")
317 i1.attach(t1.canvas)
318 i2.attach(t2.canvas)
319 i3.attach(t3.canvas)
320 root.mainloop()
321
322
323if __name__ == '__main__':

Callers 8

dnd.pyFile · 0.70
runMethod · 0.50
runMethod · 0.50
runMethod · 0.50

Calls 5

attachMethod · 0.95
IconClass · 0.85
TesterClass · 0.70
packMethod · 0.45
mainloopMethod · 0.45

Tested by 4

Used in the wild real call sites across dependent graphs

searching dependent graphs…