Thanks Ed - that did the trick! (I'm still going to have to work out how to 
write my own scripts for the ClasDesigner version of my app - but at least I 
have a known working script to start from - any documentation around for 
py2exe on its own or py2exe with dabo that you could point me at?)
     Thanks
         Rodgy
----- Original Message ----- 
From: "Ed Leafe" <[EMAIL PROTECTED]>
To: "Dabo Users list" <[email protected]>
Sent: Monday, December 01, 2008 11:24 AM
Subject: Re: [dabo-users] py2exe


> 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
>
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
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