def get_all_windows():
"""
Generates list of the hwnd of all 'real' windows.
Returns:
(bool): List of hwnd of real windows.
"""
def call(hwnd, param):
"""
The callback function to be used by EnumWindows.
Appends all hwnds to param list
"""
if is_real_window(hwnd):
param.append(hwnd)
winds = []
wg.EnumWindows(call, winds)
return winds
评论列表
文章目录