InfinifteLine.setPos add support for array arg

This commit is contained in:
Luke Campagnola 2020-07-13 12:51:03 -07:00
parent 893c85053f
commit 993871b1ae

View File

@ -222,8 +222,8 @@ class InfiniteLine(GraphicsObject):
def setPos(self, pos):
if type(pos) in [list, tuple]:
newPos = pos
if type(pos) in [list, tuple, np.ndarray]:
newPos = list(pos)
elif isinstance(pos, QtCore.QPointF):
newPos = [pos.x(), pos.y()]
else: