File: common.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 (6 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
from pyqtgraph.opengl.GLGraphicsItem import GLGraphicsItem


def ensure_parentItem(parent: GLGraphicsItem, child: GLGraphicsItem):
    assert child in parent.childItems()
    assert parent is child.parentItem()