Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3320e23 commit 2d44b95Copy full SHA for 2d44b95
1 file changed
lib/matplotlib/backends/qt_compat.py
@@ -30,13 +30,13 @@
30
"pyqt": QT_API_PYQTv2, "pyside": QT_API_PYSIDE,
31
None: None}
32
# First, check if anything is already imported.
33
-if "PyQt5" in sys.modules:
+if "PyQt5.QtCore" in sys.modules:
34
QT_API = QT_API_PYQT5
35
-elif "PySide2" in sys.modules:
+elif "PySide2.QtCore" in sys.modules:
36
QT_API = QT_API_PYSIDE2
37
-elif "PyQt4" in sys.modules:
+elif "PyQt4.QtCore" in sys.modules:
38
QT_API = QT_API_PYQTv2
39
-elif "PySide" in sys.modules:
+elif "PySide.QtCore" in sys.modules:
40
QT_API = QT_API_PYSIDE
41
# Otherwise, check the QT_API environment variable (from Enthought). This can
42
# only override the binding, not the backend (in other words, we check that the
0 commit comments