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

Method event_add

Lib/idlelib/multicall.py:363–378  ·  view source on GitHub ↗
(self, virtual, *sequences)

Source from the content-addressed store, hash-verified

361 return widget.unbind(self, sequence, funcid)
362
363 def event_add(self, virtual, *sequences):
364 #print("event_add(%s, %s)" % (repr(virtual), repr(sequences)),
365 # file=sys.__stderr__)
366 if virtual not in self.__eventinfo:
367 self.__eventinfo[virtual] = [None, []]
368
369 func, triplets = self.__eventinfo[virtual]
370 for seq in sequences:
371 triplet = _parse_sequence(seq)
372 if triplet is None:
373 #print("Tkinter event_add(%s)" % seq, file=sys.__stderr__)
374 widget.event_add(self, virtual, seq)
375 else:
376 if func is not None:
377 self.__binders[triplet[1]].bind(triplet, func)
378 triplets.append(triplet)
379
380 def event_delete(self, virtual, *sequences):
381 if virtual not in self.__eventinfo:

Callers 8

show_windowMethod · 0.45
_bind_eventsMethod · 0.45
_calltip_windowFunction · 0.45
activate_restoreMethod · 0.45
bindseqFunction · 0.45
__init__Method · 0.45
set_status_barMethod · 0.45
apply_bindingsMethod · 0.45

Calls 3

_parse_sequenceFunction · 0.85
bindMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected