Qt.py 文件源码

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

项目:saveScreenShot 作者: guncys-inc 项目源码 文件源码
def _setup(module, extras):
    """Install common submodules"""

    Qt.__binding__ = module.__name__

    for name in list(_common_members) + extras:
        try:
            # print("Trying %s" % name)
            submodule = importlib.import_module(
                module.__name__ + "." + name)
        except ImportError:
            # print("Failed %s" % name)
            continue

        setattr(Qt, "_" + name, submodule)

        if name not in extras:
            # Store reference to original binding,
            # but don't store speciality modules
            # such as uic or QtUiTools
            setattr(Qt, name, _new_module(name))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号