def foreach_window(hwnd, lparam): '''Callback procedure invoked for every enumerated window. ''' # If the window is visible, enumerate its child objects, looking # for buttons. if USER32.IsWindowVisible(hwnd): USER32.EnumChildWindows(hwnd, EnumChildProc(foreach_child), 0) return True
def foreach_window(hwnd, lparam): # If the window is visible, enumerate its child objects, looking # for buttons. if USER32.IsWindowVisible(hwnd): USER32.EnumChildWindows(hwnd, EnumChildProc(foreach_child), 0) return True