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

Skip to content

Commit e38f699

Browse files
committed
Modified event binding to support multiple handlers per event.
svn path=/trunk/matplotlib/; revision=727
1 parent 87fc494 commit e38f699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def the_binding(e):
170170
e.button = e.num
171171
return handler(e.widget, e)
172172
for name in tkname[eventname]:
173-
self._tkcanvas.bind(name, the_binding)
173+
self._tkcanvas.bind(name, the_binding, add=True)
174174
return (eventname, the_binding)
175175

176176
def key_press(self, event):

0 commit comments

Comments
 (0)