Fixed pyside import error
This commit is contained in:
parent
0953741671
commit
5eacefb926
3
Qt.py
3
Qt.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user