pyqtgraph/examples/initExample.py

17 lines
506 B
Python
Raw Normal View History

2012-03-17 15:47:20 +00:00
## make this version of pyqtgraph importable before any others
import sys, os
2012-06-22 01:52:34 +00:00
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')))
2012-10-26 12:55:53 +00:00
if 'pyside' in sys.argv: ## should force example to use PySide instead of PyQt
from PySide import QtGui
2012-10-26 12:55:53 +00:00
elif 'pyqt' in sys.argv:
from PyQt4 import QtGui
else:
from pyqtgraph.Qt import QtGui
for gs in ['raster', 'native', 'opengl']:
if gs in sys.argv:
QtGui.QApplication.setGraphicsSystem(gs)
break