Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0fb478

Browse filesBrowse files
committed
Deprecate cursord in other backends.
1 parent ff1eaa4 commit f0fb478
Copy full SHA for f0fb478

File tree

Expand file treeCollapse file tree

3 files changed

+7
-6
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-6
lines changed
+5-4Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt5.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.