File: test_ArrowItem.py

package info (click to toggle)
python-pyqtgraph 0.13.7-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,072 kB
  • sloc: python: 54,043; makefile: 127; ansic: 40; sh: 2
file content (9 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
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)