Interactions between pages of a notebook - Howto ?

DomDom BestDomDom at neuf.fr
Mon Apr 2 12:42:28 PDT 2007


Hello,

I have a frame which contains a notebook, created in a class called Myframe.
The 9 pages of the notebook are created by one class called PageNum, whose =
argument is the page number (so that I create the different pages automatic=
ally by calling PageNum(1) etc).

I want that when a TextCtrl of Page 1 is modified by the user,  a TextCtrl =
in page 2 (or 3...) be modified automatically.
My problem is to be as efficient as possible because I have several (many!)=
 widgets to modify on each page.
And I don't want to drown under lines of code...!!

What is the best way to achieve this?
- when the event (TextCtrl modification) occurs in page 1, Page 1 sends a m=
essage to MyFrame and MyFrame modifies directly the TextCtrl in Page 2  ?
- or create another class for this kind of modifications and do it from the=
re ?
- another way ?

I hope I was clear enough to be understood

Thanks for your good ideas
Dominique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200704=
02/01a04031/attachment.htm


More information about the wxpython-users mailing list