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

data()

data()[source]
Returns:Attributes of the label
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()

itemMode()[source]
Returns:Item mode

See also

setItemMode()

setIcon(icon)[source]

Assign the icon

Parameters:icon (QPixmap) – Pixmap representing a plot item
icon()[source]
Returns:Pixmap representing a plot item

See also

setIcon()

setSpacing(spacing)[source]

Change the spacing between icon and text

Parameters:spacing (int) – Spacing
spacing()[source]
Returns:Spacing between icon and text

See also

setSpacing()

setChecked(on)[source]

Check/Uncheck a the item

Parameters:on (bool) – check/uncheck
isChecked()[source]
Returns:true, if the item is checked

See also

setChecked()

setDown(down)[source]

Set the item being down

Parameters:on (bool) – true, if the item is down

See also

isDown()

isDown()[source]
Returns:true, if the item is down

See also

setDown()

sizeHint()[source]
Returns:a size hint
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()

data()[source]
Returns:Attributes of the label
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()

itemMode()[source]
Returns:Item mode

See also

setItemMode()

setIcon(icon)[source]

Assign the icon

Parameters:icon (QPixmap) – Pixmap representing a plot item
icon()[source]
Returns:Pixmap representing a plot item

See also

setIcon()

setSpacing(spacing)[source]

Change the spacing between icon and text

Parameters:spacing (int) – Spacing
spacing()[source]
Returns:Spacing between icon and text

See also

setSpacing()

setChecked(on)[source]

Check/Uncheck a the item

Parameters:on (bool) – check/uncheck
isChecked()[source]
Returns:true, if the item is checked

See also

setChecked()

setDown(down)[source]

Set the item being down

Parameters:on (bool) – true, if the item is down

See also

isDown()

isDown()[source]
Returns:true, if the item is down

See also

setDown()

sizeHint()[source]
Returns:a size hint