I went ahead an implemented the close events. These work for me on the
following backends that I was able to test: TkAgg, Wx/WxAgg, Qt4Agg,
Gtk/GtkAgg.

I can't test Cocoa or PyQt3, so I didn't implement. All that is needed
is to add a call (preferably on a FigureCanvasBase subclass) that
calls the FigureCanvasBase.close_event().

Ryan

On Thu, Apr 15, 2010 at 5:18 PM, Ryan May <rma...@gmail.com> wrote:
> Hi,
>
> Does anyone know if there's a matplotlib event that fires when a
> figure window is closed? I can't seem to find one.
>
> If there's not one, any I shouldn't add one? I need to stop my
> animation timers when the figure is closed.
>
> Ryan
>
> --
> Ryan May
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
>



-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to