def dumpWindows(hwnd):
"""Dump all controls from a window
Useful during development, allowing to you discover the structure of the
contents of a window, showing the text and class of all contained controls.
Parameters
----------
hwnd
The window handle of the top level window to dump.
Returns
-------
all windows
Usage example::
replaceDialog = findTopWindow(wantedText='Replace')
pprint.pprint(dumpWindow(replaceDialog))
"""
windows = []
win32gui.EnumChildWindows(hwnd, _windowEnumerationHandler, windows)
return windows
评论列表
文章目录