(self, alignment: Qt.AlignmentFlag)
Set the text item's alignment.
Set the text item's alignment.
Set the text item s alignment .
def setAlignment(self, alignment: Qt.AlignmentFlag) -> None:
        """
        Set the text item's alignment.
        """
        if self.__alignment != alignment:
            self.__alignment = alignment
            self.__layout()
def setAlignment ( self , alignment : Qt . AlignmentFlag ) -> None : if self . __alignment != alignment : self . __alignment = alignment self . __layout ( )