chrome/test/mini_installer/chrome_helper.py
def WindowExists(process_ids, class_pattern):
    """Returns whether there exists a window with the specified criteria.

    This method returns whether there exists a window that is owned by a process
    in |process_ids| and has a class name that matches |class_pattern|.

    Args:
        process_ids: A list of process IDs.
        class_pattern: The regular expression pattern of the window class name.

    Returns:
        A boolean indicating whether such window exists.
    """
    for hwnd in GetWindowHandles(process_ids):
        if re.match(class_pattern, win32gui.GetClassName(hwnd)):
            return True
    return False
Returns whether there exists a window with the specified criteria.

    This method returns whether there exists a window that is owned by a process
    in |process_ids| and has a class name that matches |class_pattern|.

    Args:
        process_ids: A list of process IDs.
        class_pattern: The regular expression pattern of the window class name.

    Returns:
        A boolean indicating whether such window exists.
    
Returns whether there exists a window with the specified criteria.
This method returns whether there exists a window that is owned by a process
in |process_ids| and has a class name that matches |class_pattern|.
Returns whether there exists a window with the specified criteria . This method returns whether there exists a window that is owned by a process in |process_ids| and has a class name that matches |class_pattern| .
def WindowExists(process_ids, class_pattern):
    for hwnd in GetWindowHandles(process_ids):
        if re.match(class_pattern, win32gui.GetClassName(hwnd)):
            return True
    return False
def WindowExists ( process_ids , class_pattern ) : for hwnd in GetWindowHandles ( process_ids ) : if re . match ( class_pattern , win32gui . GetClassName ( hwnd ) ) : return True return False
Returns whether there exists a window with the specified criteria.
Returns whether there exists a window with the specified criteria .
"""Returns whether there exists a window with the specified criteria.

    This method returns whether there exists a window that is owned by a process
    in |process_ids| and has a class name that matches |class_pattern|.

    Args:
        process_ids: A list of process IDs.
        class_pattern: The regular expression pattern of the window class name.

    Returns:
        A boolean indicating whether such window exists.
    """
A boolean indicating whether such window exists.
A boolean indicating whether such window exists .
process_ids
A list of process IDs.
A list of process IDs .
class_pattern
The regular expression pattern of the window class name.
The regular expression pattern of the window class name .