Show More
@@ -217,10 +217,13 b' def import_pyqt5():' | |||||
217 |
|
217 | |||
218 | ImportErrors rasied within this function are non-recoverable |
|
218 | ImportErrors rasied within this function are non-recoverable | |
219 | """ |
|
219 | """ | |
220 | import sip |
|
|||
221 |
|
220 | |||
222 | from PyQt5 import QtCore, QtSvg, QtWidgets, QtGui |
|
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 | # Alias PyQt-specific functions for PySide compatibility. |
|
227 | # Alias PyQt-specific functions for PySide compatibility. | |
225 | QtCore.Signal = QtCore.pyqtSignal |
|
228 | QtCore.Signal = QtCore.pyqtSignal | |
226 | QtCore.Slot = QtCore.pyqtSlot |
|
229 | QtCore.Slot = QtCore.pyqtSlot |
General Comments 0
You need to be logged in to leave comments.
Login now