Merge pull request #326 from rlegnain/develop

Added  "self.moving = False" in  InfLineLabel class
This commit is contained in:
Eric Dill 2016-05-03 11:06:29 -04:00
commit 1acb8accbd

View File

@ -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)