johnf wrote:
> import dabo
> import johnsClasses
> 
> Then within a form I could say something like
> new_frm = johnsClasses.MydialogClass() #if this wrong say so please
> new_frm.show()
> 
> I was sure I was right - but it does not work.  I'm missing something or 
> coding something wrong.

johnsClasses is a name in the main module's namespace. It exists only in 
that namespace. You need to explicitly import it into any other modules, 
for instance your form.

I don't know how the imports for the cdxml files work, if there's one 
place where you can put them, but in any case it will work to just put 
an 'import johnsClasses' inside the form method where you want to 
instantiate that dialog.


-- 
pkm ~ http://paulmcnett.com


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

Reply via email to