On 5/19/10 5:40 AM, Ed Leafe wrote:
> On May 19, 2010, at 8:03 AM, Adrian Matter wrote:
>
>> File
>> "D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite\ui\FrmMain.py
>> , line 23, in fillFileOpenMenu
>> fileMenu.prependMenu(MenFileOpen(fileMenu))
>> AttributeError: 'NoneType' object has no attribute 'prependMenu'
>>
>> D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite>
>> ---STOP---
>>
>> I guess I do a major error somewhere.
>> A helping tip is very appreciated, thanks
>
> I don't think you created an error, unless you changed the generated
> code from the AppWizard. Based on the Windows copyright text you pasted,
> you're running a German version of Windows, and your "&File" menu is actually
> "&Datei". The code that locates the file menu by its caption should be line
> 22 of D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite\ui\FrmMain.py:
>
> fileMenu = self.MenuBar.getMenu("File")
>
> Try changing this line to read:
>
> from dabo.dLocalize import _
> fileMenu = self.MenuBar.getMenu(_("File"))
>
> ...and let me know if that fixes the problem. You might get a different menu
> error, but if you get past this line, it will tell us that the AppWizard
> doesn't work with non-English localizations, and we can fix that.
I just committed a fix to spec-FrmMain.py.txt that should fix this problem.
Back in
r5716 I fixed this issue in spec-FrmBase.py.txt but neglected to fix it in
spec-FrmMain.py.txt.
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]