def getWindow(title, exact=False):
    titles = getWindows()
    hwnd = titles.get(title, None)
    if not hwnd and not exact:
        for k, v in titles.items():
            if title in k:
                hwnd = v
                break
    if hwnd:
        return Window(hwnd)
    else:
        return None
Return Window object if 'title' or its part found in visible windows titles, else return None
dataset/ETHPy150Open asweigart/pyautogui/pyautogui/_window_win.py/getWindow