[IPython-dev] Uniform way of integrating event loops among different IDE's

Brian Granger ellisonbg at gmail.com
Mon Sep 6 13:04:13 EDT 2010


Here is the new guisupport module that we are using for these things.
We are encouraging projects to simply copy it into their code base and
use it:




On Mon, Aug 30, 2010 at 10:29 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> On Mon, Aug 30, 2010 at 2:09 AM, Almar Klein <almar.klein at gmail.com> wrote:
>> Still, may I suggest the following: IPython or IEP, or any environment,
>> could inject a function 'start_event_loop' in the module namespace of the
>> GUI toolkit it integrates. My main argument for this, is that it would be
>> independent of IPython or any specific library or IDE. The user can then
>> simply call:
>> import wx
>> if hasattr(wx, 'start_event_loop'):
>>     wx.start_event_loop()
>> else:
>>     # Start the "native" way
>>     app = wx.PySimpleApp(*args, **kwargs)
>>     app.MainLoop()
> I mentioned it to Brian on IRC and he saw a catch with this idea, but
> I'm not sure of the details.  Over the next couple of days we can hash
> it over here, thanks a lot for the feedback.  We certainly want a
> solution that covers all the bases for all projects, so we can all
> reuse a common approach.
> Regards,
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com

More information about the IPython-dev mailing list