From a381c61c0c81a11f7cf2f5b3a3a6d896b55d2791 Mon Sep 17 00:00:00 2001 From: John Lund Date: Fri, 17 Jan 2014 08:59:59 -0600 Subject: [PATCH] LegendItem bugfix drawSymbol is module-level funct, not class method --- pyqtgraph/graphicsItems/LegendItem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/graphicsItems/LegendItem.py b/pyqtgraph/graphicsItems/LegendItem.py index a1228789..ba6a6897 100644 --- a/pyqtgraph/graphicsItems/LegendItem.py +++ b/pyqtgraph/graphicsItems/LegendItem.py @@ -3,7 +3,7 @@ from .LabelItem import LabelItem from ..Qt import QtGui, QtCore from .. import functions as fn from ..Point import Point -from .ScatterPlotItem import ScatterPlotItem +from .ScatterPlotItem import ScatterPlotItem, drawSymbol from .PlotDataItem import PlotDataItem from .GraphicsWidgetAnchor import GraphicsWidgetAnchor __all__ = ['LegendItem'] @@ -167,7 +167,7 @@ class ItemSample(GraphicsWidget): size = opts['size'] p.translate(10,10) - path = ScatterPlotItem.drawSymbol(p, symbol, size, pen, brush) + path = drawSymbol(p, symbol, size, pen, brush)