Re: [Matplotlib-users] how to find window that generated an event

2007-06-27 Thread Brian T.N. Gunney
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. >

Re: [Matplotlib-users] how to find window that generated an event

2007-06-27 Thread Brian T.N. Gunney
On Wed, Jun 27, 2007 at 09:16:09AM -0500, John Hunter wrote: > On 6/26/07, Brian T.N. Gunney <[EMAIL PROTECTED]> wrote: > >I have a matplotlib script that generates several figures. > >When a figure receives an event, how do I know which figure > >it did it? For ex

[Matplotlib-users] how to find window that generated an event

2007-06-27 Thread Brian T.N. Gunney
I have a matplotlib script that generates several figures. When a figure receives an event, how do I know which figure it did it? For example, the key event 'w' is meant to close the figure, but so far, I have no way to control which figure gets closed. In the pick_event_demo.py example, each fig