multiple wx event loop in a program possible?

Hello,

I’ve a got a ‘main gui’
that run a wx reactor loop.

I want to run another wx reactor loop
inside my app.(imagine for example a wx gui to create in live a wx gui)

Is it possible to embed another wx reactor loop
inside a separate thread?

I mean is there some global vars or other
thing that I’m not aware of that could forbid to do this???

Laurent

There can only be one wx.App subclass instance at once. You can run a
separate thread, but make calls through wx.CallAfter, which posts the
function to the event queue of the wx.App instance.

(1)
  wx.CallAfter( gaugeA.Pulse )

If you want a return value from a widget call, it gets tricky.

(2) Options.
a. Block on the result for it. Prone to deadlock.
b. Make the call in a wx.CallAfter callback, and start a new thread with
the result. Many tiny threads, one per call; breaks up code.
c. Sink wx.EVT_IDLE events. Run in the gui's own thread; breaks up code;
gui hangs until yields.

···

-----Original Message-----
From: Laurent Dufrechou [mailto:laurent.dufrechou@gmail.com]
Sent: Sunday, January 20, 2008 5:07 PM

Hello,

I've a got a 'main gui' that run a wx reactor loop.

I want to run another wx reactor loop inside my app.(imagine for example a
wx gui to create in live a wx gui)

Is it possible to embed another wx reactor loop inside a separate thread?

I mean is there some global vars or other thing that I'm not aware of that
could forbid to do this???