johnf wrote: > statement in the "formName-Code.py" file. I have been reading namespace > stuff for about an hour. Each of the tutorials explains that the use of self > and that imports are available to the program. > > So could I have done something like this: > > import dabo > import johnClasses > def main(): > app = dabo.dApp() > app.johnClasses = johnClasses > > Now app has the info and I should be able to call > new_frm = app.johnClasses.TestForm() > new_frm.show()
Bingo! That is a great way to go. In fact, that is how the AppWizard-generated code works. > And I'm not giving up - just not understanding what happening in the code. I > was hoping that seeing hand generated code would help me understand. But > Paul's code worked as I would have expected. It's Dabo's code that does not. Can you clarify what you mean when you say that Dabo's code doesn't work how you would have expected, because I was using Dabo's code in my examples? -- pkm ~ http://paulmcnett.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
