On Wed, Jun 27, 2007 at 11:40:39AM -0500, John Hunter wrote: > On 6/27/07, Brian T.N. Gunney <[EMAIL PROTECTED]> wrote: > > ># Process key presses. > >def on_key(event): > > if event.key=='w': > > # Close current window. > > # How do we control which window gets closed? > > close() > > The event has a canvas attribute, which is the figure canvas that > contains the figure, so you should be able to do > > close(event.canvas.figure)
That is exactly what I need. Thank you. Brian ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users