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 6c1f14f

Browse filesBrowse files
author
Dmitry Lupyan
committed
TypeError occurs when self.button=None in MouseEvents
1 parent 04b8314 commit 6c1f14f
Copy full SHA for 6c1f14f

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ def __init__(self, name, canvas, x, y, button=None, key=None,
14481448
self.dblclick = dblclick
14491449

14501450
def __str__(self):
1451-
return ("MPL MouseEvent: xy=(%d,%d) xydata=(%s,%s) button=%d " +
1451+
return ("MPL MouseEvent: xy=(%d,%d) xydata=(%s,%s) button=%s " +
14521452
"dblclick=%s inaxes=%s") % (self.x, self.y, self.xdata,
14531453
self.ydata, self.button,
14541454
self.dblclick, self.inaxes)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.