ad7b5f0aad
- Added pyqtgraph.systemInfo() for bug reporting - GraphicsLayout does a better job of avoiding occupied cells when using automatic placement - Fixed sizing issues with LabelItem - Updated GraphicsLayout example
21 lines
594 B
Python
21 lines
594 B
Python
## Do all Qt imports from here to allow easier PyQt / PySide compatibility
|
|
|
|
USE_PYSIDE = False ## If False, import PyQt4. If True, import PySide
|
|
|
|
if USE_PYSIDE:
|
|
from PySide import QtGui, QtCore, QtOpenGL, QtSvg
|
|
VERSION_INFO = 'PySide ' + PySide.__version__
|
|
else:
|
|
from PyQt4 import QtGui, QtCore
|
|
try:
|
|
from PyQt4 import QtSvg
|
|
except ImportError:
|
|
pass
|
|
try:
|
|
from PyQt4 import QtOpenGL
|
|
except ImportError:
|
|
pass
|
|
|
|
QtCore.Signal = QtCore.pyqtSignal
|
|
VERSION_INFO = 'PyQt4 ' + QtCore.PYQT_VERSION_STR + ' Qt ' + QtCore.QT_VERSION_STR
|