pyqt4pysideimporter.py 文件源码

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

项目:PortableApps.com-DevelopmentToolkit 作者: 3D1T0R 项目源码 文件源码
def autoselect():
    """Selects PySide or PyQt4."""

    try:
        # Don't want to import as we need to sip.setapi first
        imp.find_module('PyQt4')
    except ImportError:
        try:
            # Don't want to import two copies (as PySide and as PyQt4)
            imp.find_module('PySide')
        except ImportError:
            raise ImportError('Neither PySide nor PyQt4 is installed.')
        else:
            load_pyside()
    else:
        load_pyqt4()
    zip_imp.cleanup()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号