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:

self.formB = dabo.ui.createForm("b.cdxml")

> (button)
> def onHit(self, evt)
>    callb()  <---error here even if I put self.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

Reply via email to