On Nov 30, 2008, at 6:05 PM, Roger Lovelock wrote:

> File "C:\LB2\LodgeBooks\ui\MenFileOpen.py", line 7, in <module>
>   class MenFileOpen(dabo.ui.dMenu):
> AttributeError: 'module' object has no attribute 'dMenu'
>
> Could it be because since generating the app I have replaced my dabo  
> 'egg' with a path file to the svn version I have downloaded? nb did  
> not modify anything within the AppWizard generated app.

        Normally the form class is imported *after* the UI has been set. What  
I mean by that is that since Dabo is designed to work (potentially)  
with any UI toolkit, the correct UI classes have to be loaded; this is  
accomplished by the line 'dabo.ui.loadUI("wx")' that you've probably  
seen in many scripts.

        Your Dabo version (svn vs. egg) doesn't have anything to do with it;  
it's the order that things are being imported. Try this: in your  
setup.py, add the lines:

import dabo
dabo.ui.loadUI("wx")

...at the top with the other import statements. Let me know if that  
fixes the problem; if so, we'll update the setup.py script.


-- Ed Leafe





_______________________________________________
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]

Reply via email to