InfinifteLine.setPos add support for array arg
This commit is contained in:
parent
893c85053f
commit
993871b1ae
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user