def setText(self, text): """ Set the text to the legend item :param qwt.text.QwtText text: Text label .. seealso:: :py:meth:`text()` """ flags = Qt.AlignLeft | Qt.AlignVCenter | Qt.TextExpandTabs | Qt.TextWordWrap text.setRenderFlags(flags) QwtTextLabel.setText(self, text)
def setText(self, text): """ Set the text to the legend item :param qwt.text.QwtText text: Text label .. seealso:: :py:meth:`text()` """ flags = Qt.AlignLeft|Qt.AlignVCenter|Qt.TextExpandTabs|Qt.TextWordWrap txt = text #TODO: WTF? txt.setRenderFlags(flags) QwtTextLabel.setText(self, text)
def setText(self, text): flags = Qt.AlignLeft | Qt.AlignVCenter | Qt.TextExpandTabs | Qt.TextWordWrap txt = text #TODO: WTF? txt.setRenderFlags(flags) QwtTextLabel.setText(self, text)
def setText(self, text): flags = Qt.AlignLeft|Qt.AlignVCenter|Qt.TextExpandTabs|Qt.TextWordWrap txt = text #TODO: WTF? txt.setRenderFlags(flags) QwtTextLabel.setText(self, text)