global_hotkey_win.py 文件源码

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

项目:paste2box 作者: rokups 项目源码 文件源码
def _unwrap_window_id(window_id):
        try:
            return int(window_id)
        except:
            ctypes.pythonapi.PyCapsule_GetPointer.restype = ctypes.c_void_p
            ctypes.pythonapi.PyCapsule_GetPointer.argtypes = [ctypes.py_object]
            return int(ctypes.pythonapi.PyCapsule_GetPointer(window_id, None))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号