Am 19.05.2010 14:40, schrieb Ed Leafe:
> 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.
>
>
> -- Ed Leafe
>
>
Good Morning Ed,
thanks very much for your express help! Yes I do have German Versions of
Win 7 & XP
I did change the 2 lines you mentioned above. Besides this nothing has
been changed from the ApplicationWizard's output.
The situation is now that a grey (dabo?) window is poping up for a
moment and disappears immediately.
The error message now is:
---START---
D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite>python
webtest.sqlite.py
Traceback (most recent call last):
File "webtest.sqlite.py", line 61, in <module>
frm(app.MainForm).show()
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dForm.py",
line 931,
in __init__
BaseForm.__init__(self, preClass, parent, properties,
attProperties, *args, **kwargs)
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dForm.py",
line 44,
in __init__
fm.dFormMixin.__init__(self, preClass, parent, properties,
attProperties, *args, **kwargs)
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dFormMixin.py",
line
89, in __init__
attProperties, *args, **kwargs)
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixin.py",
line
186, in __init__
self._afterInit()
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dForm.py",
line 71,
in _afterInit
super(BaseForm, self)._afterInit()
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dFormMixin.py",
line
143, in _afterInit
super(dFormMixin, self)._afterInit()
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixin.py",
line
320, in _afterInit
self.afterInit()
File
"D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite\ui\FrmCustomer.py",
line 31, in af
terInit
self.super()
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\autosuper\autosuper.py",
line 176, in __call__
return method(*p, **kw)
File
"d:\aa_entw\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\datanav\Form.py",
line 5
9, in afterInit
self.setupMenu()
File
"D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite\ui\FrmBase.py",
line 22, in setupM
enu
self.fillFileOpenMenu()
File
"D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite\ui\FrmBase.py",
line 30, in fillFi
leOpenMenu
fileMenu.prependMenu(MenFileOpen(fileMenu))
AttributeError: 'NoneType' object has no attribute 'prependMenu'
D:\aa_entw\dabo\ide\wizards\AppWizard\test\webtest.sqlite>
---STOP---
Have a nice day,
Adrian
_______________________________________________
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]