From b4b1aec1627c55235d5343793a702db3b1924a5a Mon Sep 17 00:00:00 2001 From: Legnain Date: Tue, 3 May 2016 04:54:21 -0400 Subject: [PATCH] Added "self.moving = False" in InfLineLabel class Added "self.moving = False" in InfLineLabel class to solve the error message when clicking on the label. | AttributeError: 'InfLineLabel' object has no attribute 'moving' --- pyqtgraph/graphicsItems/InfiniteLine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyqtgraph/graphicsItems/InfiniteLine.py b/pyqtgraph/graphicsItems/InfiniteLine.py index b76b4483..2df84f47 100644 --- a/pyqtgraph/graphicsItems/InfiniteLine.py +++ b/pyqtgraph/graphicsItems/InfiniteLine.py @@ -325,6 +325,7 @@ class InfLineLabel(TextItem): def __init__(self, line, text="", movable=False, position=0.5, anchors=None, **kwds): self.line = line self.movable = movable + self.moving = False self.orthoPos = position # text will always be placed on the line at a position relative to view bounds self.format = text self.line.sigPositionChanged.connect(self.valueChanged)