@@ -971,10 +971,10 @@ def _onClose(self, event):
971971 _log .debug ("%s - onClose()" , type (self ))
972972 self .canvas .close_event ()
973973 self .canvas .stop_event_loop ()
974- # set FigureManagerWx.frame to None to prevent repeated attempts to close
975- # this frame from with the FigureManagerWx.destroy()
974+ # set FigureManagerWx.frame to None to prevent repeated attempts to
975+ # close this frame from with the FigureManagerWx.destroy()
976976 if self .figmgr is not None :
977- self .figmgr .frame = None
977+ self .figmgr .frame = None
978978 # remove figure manager from Gcf.figs
979979 Gcf .destroy (self .figmgr )
980980 #carry on with wx close event propagation, frame & children destruction
@@ -995,7 +995,8 @@ def Destroy(self, *args, **kwargs):
995995 # MPLBACKEND=wxagg python -c 'from pylab import *; plot()'.
996996 if self and not self .IsBeingDeleted ():
997997 super ().Destroy (* args , ** kwargs )
998- # This should not be necessary if the close event is allowed to propagate.
998+ # This should not be necessary if the close event is allowed to
999+ # propagate.
9991000 #if self.toolbar is not None:
10001001 # self.toolbar.Destroy()
10011002 return True
@@ -1046,9 +1047,9 @@ def destroy(self, *args):
10461047 _log .debug ("%s - destroy()" , type (self ))
10471048 frame = self .frame
10481049 if frame : # Else, may have been already deleted, e.g. when closing.
1049- # as this can be called from non gui thread from plt.close use
1050+ # as this can be called from non gui thread from plt.close use
10501051 # wx.CallAfter to esnure thread safety.
1051- wx .CallAfter ( frame .Close )
1052+ wx .CallAfter (frame .Close )
10521053
10531054 def full_screen_toggle (self ):
10541055 # docstring inherited
0 commit comments