File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 33
33
# A different backend was specified, but we still got here because a Qt
34
34
# related file was imported. This is allowed, so lets try and guess
35
35
# what we should be using.
36
- if "PyQt4" in sys .modules :
37
- # PyQt4 is actually used.
36
+ if "PyQt4" in sys .modules or "PySide" in sys . modules :
37
+ # PyQt4 or PySide is actually used.
38
38
QT_RC_MAJOR_VERSION = 4
39
39
else :
40
- # This is a fallback
40
+ # This is a fallback: PyQt5
41
41
QT_RC_MAJOR_VERSION = 5
42
42
43
43
QT_API = None
64
64
# A different backend was specified, but we still got here because a Qt
65
65
# related file was imported. This is allowed, so lets try and guess
66
66
# what we should be using.
67
- if "PyQt4" in sys .modules :
68
- # PyQt4 is actually used.
67
+ if "PyQt4" in sys .modules or "PySide" in sys . modules :
68
+ # PyQt4 or PySide is actually used.
69
69
QT_API = rcParams ['backend.qt4' ]
70
70
else :
71
- # This is a fallback
71
+ # This is a fallback: PyQt5
72
72
QT_API = rcParams ['backend.qt5' ]
73
73
74
74
# We will define an appropriate wrapper for the differing versions
You can’t perform that action at this time.
0 commit comments