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

Function _multi_call

Lib/idlelib/multicall.py:417–443  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

415
416
417def _multi_call(parent): # htest #
418 top = tkinter.Toplevel(parent)
419 top.title("Test MultiCall")
420 x, y = map(int, parent.geometry().split('+')[1:])
421 top.geometry("+%d+%d" % (x, y + 175))
422 text = MultiCallCreator(tkinter.Text)(top)
423 text.pack()
424 text.focus_set()
425
426 def bindseq(seq, n=[0]):
427 def handler(event):
428 print(seq)
429 text.bind("<<handler%d>>"%n[0], handler)
430 text.event_add("<<handler%d>>"%n[0], seq)
431 n[0] += 1
432 bindseq("<Key>")
433 bindseq("<Control-Key>")
434 bindseq("<Alt-Key-a>")
435 bindseq("<Control-Key-a>")
436 bindseq("<Alt-Control-Key-a>")
437 bindseq("<Key-b>")
438 bindseq("<Control-Button-1>")
439 bindseq("<Button-2>")
440 bindseq("<Alt-Button-1>")
441 bindseq("<FocusOut>")
442 bindseq("<Enter>")
443 bindseq("<Leave>")
444
445
446if __name__ == "__main__":

Callers

nothing calls this directly

Calls 6

MultiCallCreatorFunction · 0.85
bindseqFunction · 0.85
titleMethod · 0.45
splitMethod · 0.45
packMethod · 0.45
focus_setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…