16 lines
359 B
Python
16 lines
359 B
Python
## Do all Qt imports from here to allow easier PyQt / PySide compatibility
|
|
|
|
#from PySide import QtGui, QtCore, QtOpenGL, QtSvg
|
|
from PyQt4 import QtGui, QtCore
|
|
try:
|
|
from PyQt4 import QtSvg
|
|
except ImportError:
|
|
pass
|
|
try:
|
|
from PyQt4 import QtOpenGL
|
|
except ImportError:
|
|
pass
|
|
|
|
if not hasattr(QtCore, 'Signal'):
|
|
QtCore.Signal = QtCore.pyqtSignal
|