MCPcopy Create free account
hub / github.com/geekcomputers/Python / callback

Function callback

JARVIS/actions.py:38–43  ·  view source on GitHub ↗
(hwnd, _)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

normalize_textFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected