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
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 <rmay31@...149...> 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