From: John H. <jd...@gm...> - 2007-06-27 16:40:43
|
On 6/27/07, Brian T.N. Gunney <gu...@ll...> 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) |