pyqtgraph/tests/graphicsItems/test_ArrowItem.py

11 lines
231 B
Python
Raw Normal View History

import pyqtgraph as pg
app = pg.mkQApp()
2020-08-17 07:25:37 +00:00
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)