Skip to content
Snippets Groups Projects
Qt.py 359 B
Newer Older
  • Learn to ignore specific revisions
  • ## 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