File: test_ArrowItem.py

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