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

Method hide_event

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

Source from the content-addressed store, hash-verified

296 self.hide_window()
297
298 def hide_event(self, event):
299 # Hide autocomplete list if it exists and does not have focus or
300 # mouse click on widget / text area.
301 if self.is_active():
302 if event.type == EventType.FocusOut:
303 # On Windows platform, it will need to delay the check for
304 # acw.focus_get() when click on acw, otherwise it will return
305 # None and close the window
306 self.widget.after(1, self._hide_event_check)
307 elif event.type == EventType.ButtonPress:
308 # ButtonPress event only bind to self.widget
309 self.hide_window()
310
311 def listselect_event(self, event):
312 if self.is_active():

Callers

nothing calls this directly

Calls 3

is_activeMethod · 0.95
hide_windowMethod · 0.95
afterMethod · 0.80

Tested by

no test coverage detected