On Friday 02 March 2007 09:57, Ed Leafe 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:
>
> 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

This brings up a general question.  When using forms generated from cdxml 
files how do you pass the parent form.  I ask because I want to prevent the 
called cdxml form from having the ability to close/shut down the app.

What I'm think is somewhere I need to tell dApp what form is the MainForm.  
But I have playing with opening my MainForm from a class and not a cdxml.  Am 
I right about the MainForm?
-- 
John Fabiani

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to