example for GL scenegraph
This commit is contained in:
parent
872fcb17ff
commit
8dbce440e4
19
examples/GLViewWidget.py
Normal file
19
examples/GLViewWidget.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
## Add path to library (just for examples; you do not need this)
|
||||
import sys, os
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
|
||||
|
||||
from pyqtgraph.Qt import QtCore, QtGui
|
||||
import pyqtgraph.opengl as gl
|
||||
|
||||
app = QtGui.QApplication([])
|
||||
w = gl.GLViewWidget()
|
||||
w.show()
|
||||
|
||||
|
||||
b = gl.GLBoxItem()
|
||||
w.addItem(b)
|
||||
|
||||
v = gl.GLVolumeItem()
|
||||
w.addItem(v)
|
||||
|
Loading…
Reference in New Issue
Block a user