pyqtgraph/tests/graphicsItems/test_ArrowItem.py

11 lines
231 B
Python

import pyqtgraph as pg
app = pg.mkQApp()
def test_ArrowItem_parent():
parent = pg.GraphicsObject()
a = pg.ArrowItem(parent=parent, pos=(10, 10))
assert a.parentItem() is parent
assert a.pos() == pg.Point(10, 10)