Fixed pyside import error

This commit is contained in:
Luke Campagnola 2012-06-29 15:08:14 -04:00
parent 0953741671
commit 5eacefb926

3
Qt.py
View File

@ -1,9 +1,12 @@
## Do all Qt imports from here to allow easier PyQt / PySide compatibility ## Do all Qt imports from here to allow easier PyQt / PySide compatibility
USE_PYSIDE = False ## If False, import PyQt4. If True, import PySide USE_PYSIDE = False ## If False, import PyQt4. If True, import PySide
## Note that when switching between PyQt and PySide, all template
## files (*.ui) must be rebuilt for the target library.
if USE_PYSIDE: if USE_PYSIDE:
from PySide import QtGui, QtCore, QtOpenGL, QtSvg from PySide import QtGui, QtCore, QtOpenGL, QtSvg
import PySide
VERSION_INFO = 'PySide ' + PySide.__version__ VERSION_INFO = 'PySide ' + PySide.__version__
else: else:
from PyQt4 import QtGui, QtCore from PyQt4 import QtGui, QtCore