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

Method _hide_event_check

Lib/idlelib/autocomplete_w.py:286–296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

284 self.is_configuring = False
285
286 def _hide_event_check(self):
287 if not self.autocompletewindow:
288 return
289
290 try:
291 if not self.autocompletewindow.focus_get():
292 self.hide_window()
293 except KeyError:
294 # See issue 734176, when user click on menu, acw.focus_get()
295 # will get KeyError.
296 self.hide_window()
297
298 def hide_event(self, event):
299 # Hide autocomplete list if it exists and does not have focus or

Callers

nothing calls this directly

Calls 2

hide_windowMethod · 0.95
focus_getMethod · 0.80

Tested by

no test coverage detected