예제 #1
0
파일: text.py 프로젝트: 1PYTHON1/PythonQwt
    def mightRender(self, text):
        """
        Test if a string can be rendered by this text engine

        :param str text: Text to be tested
        :return: True, if it can be rendered
        """
        return PYSIDE2 or Qt.mightBeRichText(text)
예제 #2
0
    def mightRender(self, text):
        """
        Test if a string can be rendered by this text engine

        :param str text: Text to be tested
        :return: True, if it can be rendered
        """
        try:
            return Qt.mightBeRichText(text)
        except AttributeError:
            return True