(self, event)
| 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(): |
nothing calls this directly
no test coverage detected