2121
2222import numpy as np
2323
24- from qwt .qt .QtGui import (QFrame , QScrollArea , QWidget , QVBoxLayout , QPalette ,
24+ from .qt .QtGui import (QFrame , QScrollArea , QWidget , QVBoxLayout , QPalette ,
2525 QApplication , QStyleOption , QStyle , QPixmap ,
2626 QPainter , qDrawWinButton )
27- from qwt .qt .QtCore import Signal , QEvent , QSize , Qt , QRect , QRectF , QPoint
27+ from .qt .QtCore import Signal , QEvent , QSize , Qt , QRect , QRectF , QPoint
2828
29- from qwt .text import QwtText , QwtTextLabel
30- from qwt .dyngrid_layout import QwtDynGridLayout
31- from qwt .painter import QwtPainter
29+ from .text import QwtText , QwtTextLabel
30+ from .dyngrid_layout import QwtDynGridLayout
31+ from .painter import QwtPainter
3232
3333
3434class QwtLegendData (object ):
@@ -45,7 +45,7 @@ class QwtLegendData(object):
4545
4646 .. seealso::
4747
48- :py:class:`qwt .legend.QwtLegend`
48+ :py:class:`.legend.QwtLegend`
4949
5050 .. note::
5151
@@ -214,15 +214,15 @@ def data(self):
214214
215215 .. seealso::
216216
217- :py:meth:`setData()`, :py:meth:`qwt .plot.QwtPlotItem.legendData()`
217+ :py:meth:`setData()`, :py:meth:`.plot.QwtPlotItem.legendData()`
218218 """
219219 return self .__data .legendData
220220
221221 def setText (self , text ):
222222 """
223223 Set the text to the legend item
224224
225- :param qwt .text.QwtText text: Text label
225+ :param .text.QwtText text: Text label
226226
227227 .. seealso::
228228
@@ -270,7 +270,7 @@ def setIcon(self, icon):
270270
271271 .. seealso::
272272
273- :py:meth:`icon()`, :py:meth:`qwt .plot.QwtPlotItem.legendIcon()`
273+ :py:meth:`icon()`, :py:meth:`.plot.QwtPlotItem.legendIcon()`
274274 """
275275 self .__data .icon = icon
276276 indent = self .margin ()+ self .__data .spacing
@@ -296,7 +296,7 @@ def setSpacing(self, spacing):
296296
297297 .. seealso::
298298
299- :py:meth:`spacing()`, :py:meth:`qwt .text.QwtTextLabel.margin()`
299+ :py:meth:`spacing()`, :py:meth:`.text.QwtTextLabel.margin()`
300300 """
301301 spacing = max ([spacing , 0 ])
302302 if spacing != self .__data .spacing :
@@ -596,9 +596,9 @@ class QwtLegend(QwtAbstractLegend):
596596
597597 .. seealso ::
598598
599- :py:class`qwt .legend.QwtLegendLabel`,
600- :py:class`qwt .plot.QwtPlotItem`,
601- :py:class`qwt .plot.QwtPlot`
599+ :py:class`.legend.QwtLegendLabel`,
600+ :py:class`.plot.QwtPlotItem`,
601+ :py:class`.plot.QwtPlot`
602602
603603 .. py:class:: QwtLegend([parent=None])
604604
0 commit comments