QwtLegendLabel¶
-
class
qwt.legend_label.QwtLegendLabel(parent=None)[source]¶ A widget representing something on a QwtLegend.
-
setData(legendData)[source]¶ Set the attributes of the legend label
Parameters: legendData (QwtLegendData) – Attributes of the label See also
-
setText(text)[source]¶ Set the text to the legend item
Parameters: text (qwt.text.QwtText) – Text label See also
text()
-
setItemMode(mode)[source]¶ Set the item mode. The default is QwtLegendData.ReadOnly.
Parameters: mode (int) – Item mode See also
-
setIcon(icon)[source]¶ Assign the icon
Parameters: icon (QPixmap) – Pixmap representing a plot item See also
-
setSpacing(spacing)[source]¶ Change the spacing between icon and text
Parameters: spacing (int) – Spacing See also
-
-
class
qwt.legend_label.QwtLegendLabel(parent=None)[source] A widget representing something on a QwtLegend.
-
setData(legendData)[source] Set the attributes of the legend label
Parameters: legendData (QwtLegendData) – Attributes of the label See also
-
data()[source] Returns: Attributes of the label See also
-
setText(text)[source] Set the text to the legend item
Parameters: text (qwt.text.QwtText) – Text label See also
text()
-
setItemMode(mode)[source] Set the item mode. The default is QwtLegendData.ReadOnly.
Parameters: mode (int) – Item mode See also
-
itemMode()[source] Returns: Item mode See also
-
setIcon(icon)[source] Assign the icon
Parameters: icon (QPixmap) – Pixmap representing a plot item See also
-
setSpacing(spacing)[source] Change the spacing between icon and text
Parameters: spacing (int) – Spacing See also
-
spacing()[source] Returns: Spacing between icon and text See also
-
setChecked(on)[source] Check/Uncheck a the item
Parameters: on (bool) – check/uncheck See also
-
isChecked()[source] Returns: true, if the item is checked See also
-
setDown(down)[source] Set the item being down
Parameters: on (bool) – true, if the item is down See also
-
sizeHint()[source] Returns: a size hint
-