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

Fernando Perez fperez.net at gmail.com
Tue Aug 31 01:29:20 EDT 2010

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.



More information about the IPython-dev mailing list