File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ 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 , add = True )
174- return (eventname , the_binding )
173+ tk_binding_id = self ._tkcanvas .bind (name , the_binding , add = True )
174+ return (eventname , tk_binding_id )
175175
176176 def key_press (self , event ):
177177 val = event .keysym_num
@@ -236,8 +236,8 @@ def wrapper(widget, event):
236236 return self .connect (s , wrapper )
237237
238238 def mpl_disconnect (self , cid ):
239- eventname , the_binding = cid
240- self ._tkcanvas .unbind (eventname ) #, the_binding)
239+ eventname , tk_binding_id = cid
240+ self ._tkcanvas .unbind (None , funcid = tk_binding_id ) #, the_binding)
241241 return None
242242
243243class FigureManagerTkAgg (FigureManagerBase ):
You can’t perform that action at this time.
0 commit comments