pyqtgraph/Qt.py

16 lines
359 B
Python
Raw Normal View History

## Do all Qt imports from here to allow easier PyQt / PySide compatibility
2012-03-02 04:23:33 +00:00
#from PySide import QtGui, QtCore, QtOpenGL, QtSvg
2012-05-11 22:05:41 +00:00
from PyQt4 import QtGui, QtCore
try:
from PyQt4 import QtSvg
except ImportError:
pass
try:
from PyQt4 import QtOpenGL
except ImportError:
pass
2012-03-02 04:23:33 +00:00
if not hasattr(QtCore, 'Signal'):
QtCore.Signal = QtCore.pyqtSignal