Ed Leafe wrote: > On Aug 27, 2009, at 6:06 PM, [email protected] wrote: >> And furthermore, how would we substitute our own forms created in >> the CD, >> since these are not python code but rather cdxml? Can we use the >> dabo.ui.createForm function somehow? > > Exactly. If the form was in the ui directory, you would use: > > myForm = dabo.ui.createForm("ui/MyCool.cdxml")
Just to add to Ed's explanation, don't confuse "dabo.ui" with "ui/MyCool.cdxml". "dabo.ui" is dabo's ui module, whereas "ui/MyCool.cdxml" refers to a cdxml file in *your app's* ui directory. Your app's ui directory does happen to be a module, too, but it isn't the same as dabo's ui module. I think this would be safer, in case the current directory isn't the app's home directory, and/or in case you are on Windows which uses backslash paths: app = self.Application # app = dabo.dAppRef ## in case you are outside the context of a dabo object import os myForm = dabo.ui.createForm(os.path.join(app.HomeDirectory, ui, "MyCool.cdxml")) >> And as a more general question, what's the best route for us to pursue >> knitting things together -- we're definitely looking for "MDI" style >> application, with a main form with some kind of splash screen, and >> forms that are >> called from the menu. More or less in the fashion of the app wizard. >> So the >> app wizard might be one model. I also see that quickstart creates a >> simple >> structure for an application. Should we build on that, rather than the >> appwizard? > > The quickStart() structure is the best way to go for general > development. The app wizard is great for quick table maintenance apps, > but if you want to do anything more complex with them, you pretty much > have to code everything yourself. None of the UI tools work with the > app wizard code. You could start with appWizard generated code. You could continue to use the datanav framework, or not. I started my app with appWizard-generated code and I haven't felt limited in any way. It was simply easier for me to start with something that got my UI 50% there. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
