当前位置: 首页>>代码示例>>Python>>正文


Python qtpy.PYSIDE属性代码示例

本文整理汇总了Python中qtpy.PYSIDE属性的典型用法代码示例。如果您正苦于以下问题:Python qtpy.PYSIDE属性的具体用法?Python qtpy.PYSIDE怎么用?Python qtpy.PYSIDE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在qtpy的用法示例。


在下文中一共展示了qtpy.PYSIDE属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: check_compatibility

# 需要导入模块: import qtpy [as 别名]
# 或者: from qtpy import PYSIDE [as 别名]
def check_compatibility(self):
        """Check if current Qt backend version is greater or equal to 5."""
        message = ''
        valid = True
        if PYQT4 or PYSIDE:
            message = _('<b>spyder-terminal</b> doesn\'t work with Qt 4. '
                        'Therefore, this plugin will be deactivated.')
            valid = False
        if WINDOWS:
            try:
                import winpty
                del winpty
            except:
                message = _('Unfortunately, the library that <b>spyder-termina'
                            'l</b> uses to create terminals is failing to '
                            'work in your system. Therefore, this plugin will '
                            'be deactivated.<br><br> This usually happens on '
                            'Windows 7 systems. If that\'s the case, please '
                            'consider updating to a newer Windows version.')
                valid = False
        return valid, message

    # ------ SpyderPluginWidget API ------------------------------ 
开发者ID:spyder-ide,项目名称:spyder-terminal,代码行数:25,代码来源:terminalplugin.py

示例2: test_qtxmlpatterns

# 需要导入模块: import qtpy [as 别名]
# 或者: from qtpy import PYSIDE [as 别名]
def test_qtxmlpatterns():
    """Test the qtpy.QtXmlPatterns namespace"""
    from qtpy import QtXmlPatterns
    assert QtXmlPatterns.QAbstractMessageHandler is not None
    assert QtXmlPatterns.QAbstractUriResolver is not None
    assert QtXmlPatterns.QAbstractXmlNodeModel is not None
    assert QtXmlPatterns.QAbstractXmlReceiver is not None
    if not PYSIDE2 and not PYSIDE:
        assert QtXmlPatterns.QSimpleXmlNodeModel is not None
    assert QtXmlPatterns.QSourceLocation is not None
    assert QtXmlPatterns.QXmlFormatter is not None
    assert QtXmlPatterns.QXmlItem is not None
    assert QtXmlPatterns.QXmlName is not None
    assert QtXmlPatterns.QXmlNamePool is not None
    assert QtXmlPatterns.QXmlNodeModelIndex is not None
    assert QtXmlPatterns.QXmlQuery is not None
    assert QtXmlPatterns.QXmlResultItems is not None
    assert QtXmlPatterns.QXmlSchema is not None
    assert QtXmlPatterns.QXmlSchemaValidator is not None
    assert QtXmlPatterns.QXmlSerializer is not None 
开发者ID:spyder-ide,项目名称:qtpy,代码行数:22,代码来源:test_qtxmlpatterns.py

示例3: check_compatibility

# 需要导入模块: import qtpy [as 别名]
# 或者: from qtpy import PYSIDE [as 别名]
def check_compatibility(self):
        """
        Check plugin requirements.

        - PyQt version is greater or equal to 5.
        """
        messages = []
        valid = True
        if PYQT4 or PYSIDE:
            messages.append('Spyder-reports does not work with Qt4')
            valid = False
        return valid, ", ".join(messages)

    # ------------------------------------------------------------------------- 
开发者ID:spyder-ide,项目名称:spyder-reports,代码行数:16,代码来源:reportsplugin.py

示例4: test_qtnetwork

# 需要导入模块: import qtpy [as 别名]
# 或者: from qtpy import PYSIDE [as 别名]
def test_qtnetwork():
    """Test the qtpy.QtNetwork namespace"""
    assert QtNetwork.QAbstractNetworkCache is not None
    assert QtNetwork.QNetworkCacheMetaData is not None
    if not PYSIDE and not PYSIDE2:
        assert QtNetwork.QHttpMultiPart is not None
        assert QtNetwork.QHttpPart is not None
    assert QtNetwork.QNetworkAccessManager is not None
    assert QtNetwork.QNetworkCookie is not None
    assert QtNetwork.QNetworkCookieJar is not None
    assert QtNetwork.QNetworkDiskCache is not None
    assert QtNetwork.QNetworkReply is not None
    assert QtNetwork.QNetworkRequest is not None
    assert QtNetwork.QNetworkConfigurationManager is not None
    assert QtNetwork.QNetworkConfiguration is not None
    assert QtNetwork.QNetworkSession is not None
    assert QtNetwork.QAuthenticator is not None
    assert QtNetwork.QHostAddress is not None
    assert QtNetwork.QHostInfo is not None
    assert QtNetwork.QNetworkAddressEntry is not None
    assert QtNetwork.QNetworkInterface is not None
    assert QtNetwork.QNetworkProxy is not None
    assert QtNetwork.QNetworkProxyFactory is not None
    assert QtNetwork.QNetworkProxyQuery is not None
    assert QtNetwork.QAbstractSocket is not None
    assert QtNetwork.QLocalServer is not None
    assert QtNetwork.QLocalSocket is not None
    assert QtNetwork.QTcpServer is not None
    assert QtNetwork.QTcpSocket is not None
    assert QtNetwork.QUdpSocket is not None
    if not PYSIDE:
        assert QtNetwork.QSslCertificate is not None
        assert QtNetwork.QSslCipher is not None
        assert QtNetwork.QSslConfiguration is not None
        assert QtNetwork.QSslError is not None
        assert QtNetwork.QSslKey is not None
        assert QtNetwork.QSslSocket is not None 
开发者ID:spyder-ide,项目名称:qtpy,代码行数:39,代码来源:test_qtnetwork.py


注:本文中的qtpy.PYSIDE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。