Paul McNett wrote:
> As far as dabo.ui.loadUI("wx"), that only needs to occur once, but it 
> doesn't hurt to do it multiple times. The main reason you may need this 
> in each of your UI scripts is for testing them as units: whereas the 
> main script is the only place you'll need that line in the normal 
> running of the app, if you want to run just ui/FrmCustomers.py you'll 
> need the line there for it to work.

And, just to beat this to death: you don't even need 
dabo.ui.loadUI("wx") in your main script. You could instead initialize 
your dApp before using anything from dabo.ui. IOW:

import dabo
app = dabo.dApp()
app.setup()

will do it. app.setup() will automatically set the ui to wx, if not 
already set to a different ui. You can also be explicit about it:

import dabo
app = dabo.dApp(UI="wx")
app.setup()

-- 
pkm ~ http://paulmcnett.com


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

Reply via email to