On 3/2/07, Antonio Dias <[EMAIL PROTECTED]> wrote:
> Ed, I think you didn't undersand...
>
> in formA I have a grid and a button.
> clicking on the button I want to show the formB
>
> I created the callb() function under formA
> ==
> def callb(self):
> formB = createForm("formB.cdxml") =or=> self.formB = ... it dont work
> formB.show() =or=> self.formB.show()
> ==
The point of the self.FormB was so you can access from all methods in
FormA and also so that the object won't go out of scope.
> on the event of the button in formA, the following codes don't work
> ==
> def onHit(self, evt):
> formA.callb() <-- dont work - error: global variable formA not defined
> or
> self.formA.callb() <--dont work - error: button has no attribute formA
self.Form.callb()
>
> what I did wrong??
>
> Tony
>
>
> _______________________________________________
> 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