File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
doc/api/next_api_changes/removals Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,8 @@ Qt4-based backends
3
3
The qt4agg and qt4cairo backends have been removed. Qt4 has reached its
4
4
end-of-life in 2015 and there are no releases for recent versions of Python.
5
5
Please use one of the Qt5 or Qt6 backends.
6
+
7
+ ``qt_compat.is_pyqt5 ``
8
+ ~~~~~~~~~~~~~~~~~~~~~~
9
+ This function has been removed due to the release of PyQt6. The Qt version can
10
+ be checked using ``QtCore.qVersion() ``.
Original file line number Diff line number Diff line change 17
17
import sys
18
18
19
19
import matplotlib as mpl
20
- from matplotlib import _api
21
20
22
21
23
22
QT_API_PYQT5 = "PyQt5"
@@ -80,10 +79,6 @@ def _isdeleted(obj): return not shiboken2.isValid(obj)
80
79
raise ValueError ("Unexpected value for the 'backend.qt5' rcparam" )
81
80
_getSaveFileName = QtWidgets .QFileDialog .getSaveFileName
82
81
83
- @_api .deprecated ("3.3" , alternative = "QtCore.qVersion()" )
84
- def is_pyqt5 ():
85
- return True
86
-
87
82
88
83
if QT_API in [QT_API_PYQT5 , QT_API_PYSIDE2 ]:
89
84
_setup_pyqt5 ()
You can’t perform that action at this time.
0 commit comments