That's the Visual Basic way to do it. I prefer it this way:
Controls work on models. If a control has to store a value it does so by calling MyDataPool.storeMyValue(self.GetValue()). When the NotebookPage is changed, the new page tells all controls to update themeselves: self.SetValue(str(MyDataPool.myValue())). Recently I even prefer controls doing that by theirselves. They all have a timer, to periodically check whether or not they have to update themselves. But such a design is necessary only if the controls display current values, coming e.g. from an OPC server. HTH Franz GEIGER <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Ok i have a wxFrame with a wxNotebook that has two wxPanels, lets call > them panel_1 and panel_2 > > i have wxTextCtrl in panel_1 (call it panel_1_ctrl) that i want the > user to be able to fill up. I then want the user to be able to click a > button (i.e. create an EVT) and have Value() of panel_1_ctrl be sent a > wxTextCtrl in panel_2. > > So can i do this directly, i.e. is there a way to tell panel_2 that > something has happended in panel_1 and to send panel_2 that data? Or do > i have to go through the wxFrame i.e (panel_1 tells wxFrame that EVT > happened, wxFrame then tells panel_2). > > > in short panel_1_ctrl sends Value() to panel_2_ctrl. > > > > Thanks for any help that you can give me. > -- http://mail.python.org/mailman/listinfo/python-list