2 Group under one hat PySide and PyQt4. PyQt4 is tried first.
7 if os.getenv("CURVEPLOT_FORCE_PYSIDE") is not None:
11 print "Using PyQt4 run-time ..."
16 print "Using PySide run-time ..."
18 raise Exception("Neither PyQt4 nor PySide could be imported!")
20 # Matplotlib has to be handled very early, otherwise it will switch to whatever it
21 # finds first on the machine
24 if _use_pyqt: back = 'PyQt4'
26 matplotlib.rcParams['backend.qt4'] = back
27 print "Matplotlib found - Set matplotlib backend to '%s'!" % back
29 # No matplotlib, silently discard err message.