window_api.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号