[wxPython-users] Intra App Communication

Mark Erbaugh mark at microenh.com
Mon Dec 3 05:48:31 PST 2007


Stephen, 

On Sun, 2007-12-02 at 23:54 -0800, Stephen Hansen wrote:
> 
>         1) The user is viewing a record in the read-only frame and
>         clicks on the
>         EDIT button. This frame sends out a general message asking
>         "are there 
>         any edit frames currently editing this record?" If no frames
>         respond,
>         the read-only frame would create a new edit frame. If a frame
>         does
>         respond, the read-only frame activates it by bringing it to
>         the front 
>         and giving it the focus (and restoring it if it had been
>         minimized).
> 
> 
> I'm not sure how to best accomplish this two-way communication; I'd
> probably myself implement a manager class and if a frame starts
> editing a record, it just informs the manager. Then when it stops, it
> tells the manager that. So the manager maintains the state of 'who is
> editing any records at any given time'; so you don't have to deal with
> these multiple frames "responding" that they are or are not editing.

I was thinking about this and I think a manager object is the better way
to go.

Thanks,
Mark





More information about the wxpython-users mailing list