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

Method keyrelease_event

Lib/idlelib/autocomplete_w.py:439–445  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

437 return None
438
439 def keyrelease_event(self, event):
440 if not self.is_active():
441 return
442 if self.widget.index("insert") != \
443 self.widget.index("%s+%dc" % (self.startindex, len(self.start))):
444 # If we didn't catch an event which moved the insert, close window
445 self.hide_window()
446
447 def is_active(self):
448 return self.autocompletewindow is not None

Callers

nothing calls this directly

Calls 3

is_activeMethod · 0.95
hide_windowMethod · 0.95
indexMethod · 0.45

Tested by

no test coverage detected