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()
pyqt4pysideimporter.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录