On 3/2/07, Ed Leafe <[EMAIL PROTECTED]> wrote:
> On Mar 2, 2007, at 12:45 PM, Antonio Dias wrote:
>
> > I have in A:
> >
> > (formA)
> > def callb(self):
> > FormB = dabo.ui.createForm("b.cdxml")
> > FormB.show()
>
> When this method exits, the name 'FormB' goes out of scope. What you
> need to do is save it as a form attribute like this:
If I recall correctly won't Python run garbage collection and delete
the form when it goes out of scope, even if it's shown.
>
> self.formB = dabo.ui.createForm("b.cdxml")
>
> > (button)
> > def onHit(self, evt)
> > callb() <---error here even if I put self.callb()
Need a self.Form.callb().
>
> Then anywhere else in FormA you can refer to form B like this:
>
> def onHit(self, evt):
> self.formB.callb()
>
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users