On Tuesday 16 January 2007 09:50, Paul McNett wrote: > johnf wrote: > > That works - now what if I want the dialog form class to be universally > > available to all forms? > > Then you break it out into a MyDialog.py file, contents like: > > import dabo > > class MyDialog(dabo.ui.dDialog): > ... > > You put the MyDialog.py file somewhere accessible to your forms (same > directory for simplicity is better. This is why I like the AppWizard's > ui/ directory). Then where you want to use it, do: > > import MyDialog > dlg = MyDialog.MyDialog(...) > dlg.showModal()
So I gather that it's OK to have multiple import statements of the same import everywhere. In VFP an universal function, procedure or class would be loaded at the beginning of an app. Set procedure to someProcedure or set classlib to someclass additive I have no need to add something like above? -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
