On 02/09/09 11:59, Gael Varoquaux wrote: > On Sun, Feb 08, 2009 at 04:08:31PM -0800, Brian Granger wrote: >> * In the current matplotlib backend wx.Yield() is called in a way that >> is not safe as far as protecting against recursive calls to Yield. I >> think it should be called in this way: > >> app = wx.GetApp() >> if app is not None: >> app.Yield(True) > > The problem I see with this approach is that arbitrary wx programs will > always be doing this. The matplotlib guys can fix matplotib not to do > this. I can fix Mayavi not to do this, but there are many more wx > programs. And anyhow, most of the time, Yield should not be called, as it > is a hack. Unfortunately, you often end up having to call it. :(
Just nit picking: You'd really have to modify traits and pyface for this. Mayavi doesn't start the mainloop. cheers, prabhu ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel