LegendItem bugfix
drawSymbol is module-level funct, not class method
This commit is contained in:
parent
19293d5b67
commit
a381c61c0c
@ -3,7 +3,7 @@ from .LabelItem import LabelItem
|
|||||||
from ..Qt import QtGui, QtCore
|
from ..Qt import QtGui, QtCore
|
||||||
from .. import functions as fn
|
from .. import functions as fn
|
||||||
from ..Point import Point
|
from ..Point import Point
|
||||||
from .ScatterPlotItem import ScatterPlotItem
|
from .ScatterPlotItem import ScatterPlotItem, drawSymbol
|
||||||
from .PlotDataItem import PlotDataItem
|
from .PlotDataItem import PlotDataItem
|
||||||
from .GraphicsWidgetAnchor import GraphicsWidgetAnchor
|
from .GraphicsWidgetAnchor import GraphicsWidgetAnchor
|
||||||
__all__ = ['LegendItem']
|
__all__ = ['LegendItem']
|
||||||
@ -167,7 +167,7 @@ class ItemSample(GraphicsWidget):
|
|||||||
size = opts['size']
|
size = opts['size']
|
||||||
|
|
||||||
p.translate(10,10)
|
p.translate(10,10)
|
||||||
path = ScatterPlotItem.drawSymbol(p, symbol, size, pen, brush)
|
path = drawSymbol(p, symbol, size, pen, brush)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user