winguiauto.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:pyAutoTrading 作者: drongh 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号