Re: How to resolve values of a frame in boa
"Werner F. Bruhin" <[email protected]>
| Newsgroups | gmane.comp.ide.boa-constructor.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Edgard, edgardalvescosta wrote: > Boa Friends > > I want calculate values of a frame in a other frame. Is this possible?? > > If it is possible which is the sintaxe to the second frame resolve the > values?? > > Some like that: > > Form1 > > x=selt.txtCtrl.GetValue() > > Form2 > > y=Form1.self.txtCtrl.SetValue(x) > y=self.txtCtrl.GetValue() Assuming that form1 and form2 have a common parent you could do something like this. in form2 val = self.parent.Form1.textctrl.GetValue() Or have a method in Form1. def GetTextCtrlVal(self): return self.textctrl.GetValue() val = self.parent.Form1.GetTextCtrlVal() Or you could use publisher/subsriber, see wxPython/wx/lib/pubsub.py Werner ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/