Skip to content

TextLength

Base classes

Name Children Inherits
QTextLength
PySide6.QtGui
QTextLength(self, /) -> None

⋔ Inheritance diagram

graph TD
  2109868495["gui.TextLength"]
  3078125726["QtGui.QTextLength"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  3078125726 --> 2109868495
  37984305 --> 3078125726
  2751680898 --> 37984305

🛈 DocStrings

Bases: QTextLength

Source code in prettyqt/gui/textlength.py
class TextLength(QtGui.QTextLength):
    def __repr__(self):
        return get_repr(self, self.type(), self.rawValue())

    def get_type(self) -> TypeStr:
        """Return type of this length object.

        Returns:
            timer type
        """
        return TYPES.inverse[self.type()]

get_type() -> TypeStr

Return type of this length object.

Source code in prettyqt/gui/textlength.py
def get_type(self) -> TypeStr:
    """Return type of this length object.

    Returns:
        timer type
    """
    return TYPES.inverse[self.type()]

:fa-brands-github: Show source on GitHub