From 5eacefb9265ff34d211fb01a9012c7e569c18c71 Mon Sep 17 00:00:00 2001 From: Luke Campagnola <> Date: Fri, 29 Jun 2012 15:08:14 -0400 Subject: [PATCH] Fixed pyside import error --- Qt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Qt.py b/Qt.py index 349721ab..ff3becdd 100644 --- a/Qt.py +++ b/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