##// END OF EJS Templates
Fixed PyQt 5.11 backwards incompatibility by moving import sip after other imports
bnables -
Show More
@@ -217,10 +217,13 b' def import_pyqt5():'
217 217
218 218 ImportErrors rasied within this function are non-recoverable
219 219 """
220 import sip
221 220
222 221 from PyQt5 import QtCore, QtSvg, QtWidgets, QtGui
223
222
223 # Note that import sip must follow other PyQt5 imports for PyQt >5.11
224 # http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html#pyqt-v5-11
225 import sip
226
224 227 # Alias PyQt-specific functions for PySide compatibility.
225 228 QtCore.Signal = QtCore.pyqtSignal
226 229 QtCore.Slot = QtCore.pyqtSlot
General Comments 0
You need to be logged in to leave comments. Login now