On Thu, Feb 07, 2008 at 11:31:11AM -0500, Paul Kienzle wrote: > There are two ways to do this in wx.
> One is to use eventloop.Dispatch() which waits until the next available > event: > [...] > The other is to trigger a loop.Exit() from the click callback. > [...] Very nice. I am impressed. We need to find a way of doing the same in other toolkits. Way can however change the function call flush_event to give it an "until" callback (and maybe rename it to "wait_interactively"), and move the busy waiting code in the backend-dependant part of the code. That way we can remove it backend after backend. I can contribute a bit to this refactoring, but give me a couple of weeks before. Cheers, Gaƫl ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel