how to do multi-window interactions?

Paul Sijben sijben at eemvalley.com
Wed May 2 00:40:36 PDT 2007


In my app in order to edit complex data structures (in this case an =

address book)  the user needs to

   1. select the entry she wants to edit, this yields a new frame with
      the entry
   2. from that entry another frame may be opened for some more detailed
      editing

Now I can make the entry frame and I can make the other. However the =

problem starts when I want to get the edited value(s) back from the =

other into the entry frame.

On the event of the COMMIT-button being pressed I tried putting the =

value into a queue, which ought to be picked up by the calling frame. =

That leads to a deadlock.

Trying to start the new frame from an event handler in the calling frame =

leads to a deadlock even before the new frame is drawn (the event does =

not arrive even though it is launched towards the right frame and there =

is an event handler for that event in place).

I am starting to think that doing this procedurally is not the way =

forward. Just launching the other frame and waiting for its answer and =

then dealing with it seems to run into deadlocks.

Can somebody point me to the right pattern to use here? Or am I simply =

missing something here?

Paul

-- =

Paul Sijben                    	tel: +31334566488
Eemvalley Technology       	fax: +31334557523
the Netherlands                	http://eemvalley.com    =


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200705=
02/0929a4a6/attachment.htm


More information about the wxpython-users mailing list