Antonio Dias wrote:
> Hi,
> 
> I'm having an newbie doubt about how to do the following:
> 
> I've created a grid and a <Edit> Button in form A.cdxml, and a edition form in
> B.cdxml. I want to show B.cdxml calling it in two ways: doubleclicking an row 
> in
> the grid or clicking the Button. 
> What I want is to create a class (f.e. "ShowB") that uses
> createForm("B.cdxml",True)., and then call this class from the two events 
> above.
> Where I have to create that class that it can be visible for both events??
> 
> Tony

Create a new method in form A:
def callFormB(self):
        frm = dabo.ui.createForm("B.cdxml")
        frm.show()

Call this method from your button or from your grid double click.
If you want to wrap this in a class you have to add a import stmt via
"Manage Imports" in Classdesigner.
Put your code for ShowB into showb.py

Uwe

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

Reply via email to