Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0fb478

Browse files
committed
Deprecate cursord in other backends.
1 parent ff1eaa4 commit f0fb478

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
``backend_gtk3.cursord``
2-
~~~~~~~~~~~~~~~~~~~~~~~~
3-
This dict is deprecated, in order to make the module importable on headless
4-
environments.
1+
``cursord`` in GTK, Qt, and wx backends
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
The ``backend_gtk3.cursord``, ``backend_qt.cursord``, and
4+
``backend_wx.cursord`` dictionaries are deprecated. This makes the GTK module
5+
importable on headless environments.

lib/matplotlib/backends/backend_qt5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
(QtCore.Qt.ShiftModifier, QtCore.Qt.Key_Shift),
7474
(QtCore.Qt.MetaModifier, QtCore.Qt.Key_Meta),
7575
]
76-
cursord = {
76+
cursord = { # deprecated in Matplotlib 3.5.
7777
cursors.MOVE: QtCore.Qt.SizeAllCursor,
7878
cursors.HAND: QtCore.Qt.PointingHandCursor,
7979
cursors.POINTER: QtCore.Qt.ArrowCursor,

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def _set_frame_icon(frame):
10431043
frame.SetIcons(bundle)
10441044

10451045

1046-
cursord = {
1046+
cursord = { # deprecated in Matplotlib 3.5.
10471047
cursors.MOVE: wx.CURSOR_HAND,
10481048
cursors.HAND: wx.CURSOR_HAND,
10491049
cursors.POINTER: wx.CURSOR_ARROW,

0 commit comments

Comments
 (0)