(hwnd, _)
| 36 | matches = [] |
| 37 | |
| 38 | def callback(hwnd, _): |
| 39 | if not win32gui.IsWindowVisible(hwnd): |
| 40 | return |
| 41 | title = win32gui.GetWindowText(hwnd) |
| 42 | if wanted in normalize_text(title): |
| 43 | matches.append((hwnd, title)) |
| 44 | |
| 45 | win32gui.EnumWindows(callback, None) |
| 46 | if not matches: |
nothing calls this directly
no test coverage detected