當前位置: 首頁>>代碼示例>>Python>>正文


Python QtCore.__version__方法代碼示例

本文整理匯總了Python中PySide.QtCore.__version__方法的典型用法代碼示例。如果您正苦於以下問題:Python QtCore.__version__方法的具體用法?Python QtCore.__version__怎麽用?Python QtCore.__version__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PySide.QtCore的用法示例。


在下文中一共展示了QtCore.__version__方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: load_numpy_f2py___version__

# 需要導入模塊: from PySide import QtCore [as 別名]
# 或者: from PySide.QtCore import __version__ [as 別名]
def load_numpy_f2py___version__(finder, module):
    """the numpy.f2py.__version__ module optionally imports the __svn_version__
       module; ignore the error if the module cannot be found."""
    module.IgnoreName("__svn_version__") 
開發者ID:tensorlang,項目名稱:tensorlang,代碼行數:6,代碼來源:hooks.py

示例2: load_PySide_QtGui

# 需要導入模塊: from PySide import QtCore [as 別名]
# 或者: from PySide.QtCore import __version__ [as 別名]
def load_PySide_QtGui(finder, module):
    """There is a chance that GUI will use some image formats
    add the image format plugins
    """
    from PySide import QtCore
    # Pyside.__version* is PySide version, PySide.QtCore.__version* is Qt version
    _QtGui(finder, module, QtCore.__version__) 
開發者ID:tensorlang,項目名稱:tensorlang,代碼行數:9,代碼來源:hooks.py

示例3: pytest_report_header

# 需要導入模塊: from PySide import QtCore [as 別名]
# 或者: from PySide.QtCore import __version__ [as 別名]
def pytest_report_header(config):
    """
    This function is used by py.test to insert a customized header into the
    test report.
    """

    versions = os.linesep
    versions += 'PyQt4: '

    try:
        from PyQt4 import Qt
        versions += "PyQt: {0} - Qt: {1}".format(Qt.PYQT_VERSION_STR, Qt.QT_VERSION_STR)
    except ImportError:
        versions += 'not installed'
    except AttributeError:
        versions += 'unknown version'

    versions += os.linesep
    versions += 'PyQt5: '

    try:
        from PyQt5 import Qt
        versions += "PyQt: {0} - Qt: {1}".format(Qt.PYQT_VERSION_STR, Qt.QT_VERSION_STR)
    except ImportError:
        versions += 'not installed'
    except AttributeError:
        versions += 'unknown version'

    versions += os.linesep
    versions += 'PySide: '

    try:
        import PySide
        from PySide import QtCore
        versions += "PySide: {0} - Qt: {1}".format(PySide.__version__, QtCore.__version__)
    except ImportError:
        versions += 'not installed'
    except AttributeError:
        versions += 'unknown version'

    versions += os.linesep
    versions += 'PySide2: '

    try:
        import PySide2
        from PySide2 import QtCore
        versions += "PySide: {0} - Qt: {1}".format(PySide2.__version__, QtCore.__version__)
    except ImportError:
        versions += 'not installed'
    except AttributeError:
        versions += 'unknown version'

    versions += os.linesep
    
    return versions 
開發者ID:birforce,項目名稱:vnpy_crypto,代碼行數:57,代碼來源:conftest.py


注:本文中的PySide.QtCore.__version__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。