Kyle Stevens wrote:
> Dabo looks great, but I have some wxPython applications and I would like 
> to try just using Dabo's report designer for now.  I created an 
> application using the AppWizard, along with a sample report.  I tried 
> running FrmReportSample.py, hoping it would be that simple, but I 
> received the error below.  Has this ever been tried before?  Any hints 
> to help me figure this out?  Thanks for any help.

 > Runtime\ide\wizards\AppWizard\Estimate\ui\FrmRepor
 > tBase.py", line 7, in <module>
 >     class FrmReportBase(dabo.ui.dDialog):
 > AttributeError: 'module' object has no attribute 'dDialog'


FrmReportSample wasn't designed to run independently from the rest of 
the application generated with the AppWizard. However, you can get it to 
run by making the following changes:

1) Underneath the 'import dabo.ui' and above the 'import FrmReportBase' 
line, add the following code:

if __name__ == "__main__":
        dabo.ui.loadUI("wx")

2) At the bottom of the script, add the following block:

if __name__ == "__main__":
        import sys
        sys.path.insert(0, "../")
        from App import App
        app = App(MainFormClass=None)
        import db
        app.db = db
        app.setup()
        frm = FrmReportSample()
        frm.show()
        app.start()



-- 
pkm ~ http://paulmcnett.com


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to