

def getWindow(title, exact=False):
    "Return Window object if 'title' or its part found in visible windows titles, else return None\n\n    Return only 1 window found first\n    Args:\n        title: unicode string\n        exact (bool): True if search only exact match\n    "
    titles = getWindows()
    hwnd = titles.get(title, None)
    if ((not hwnd) and (not titles)):
        for (k, v) in titles.items():
            if (title in k):
                hwnd = v
                break
    if hwnd:
        return Window(hwnd)
    else:
        return None

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/_window_win.py getWindow/VarMisuse@42/134 `exact`->`titles`