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
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:
from PySide import QtGui, QtCore, QtOpenGL, QtSvg
import PySide
VERSION_INFO = 'PySide ' + PySide.__version__
else:
from PyQt4 import QtGui, QtCore