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 b9da9e5

Browse filesBrowse files
committed
multiple canvas support
1 parent e1bcf2b commit b9da9e5
Copy full SHA for b9da9e5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/backends/backend_tkagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_tkagg.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ def __init__(self, figure, master=None, resize_callback=None):
246246
# event to the window containing the canvas instead.
247247
# See http://wiki.tcl.tk/3893 (mousewheel) for details
248248
root = self._tkcanvas.winfo_toplevel()
249-
root.bind("<MouseWheel>", self.scroll_event_windows)
249+
root.bind("<MouseWheel>", self.scroll_event_windows, "+")
250250

251251
# Can't get destroy events by binding to _tkcanvas. Therefore, bind
252252
# to the window and filter.
253253
def filter_destroy(evt):
254254
if evt.widget is self._tkcanvas:
255255
self.close_event()
256-
root.bind("<Destroy>", filter_destroy)
256+
root.bind("<Destroy>", filter_destroy, "+")
257257

258258
self._master = master
259259
self._tkcanvas.focus_set()

0 commit comments

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