Hi,
I noticed that localization of framework is far from complete, because
any change to dabo.mo file,
changing the name of any framework menu caption (File, Edit, View,
etc.), causes that everything stop to work:
ide, demos and all wizard generated applications too.
It's simply because not all calls to menu are wrapped in localization code.
There wasn't other way to access menus than through it's caption?
I checked this under Windows XP, Python 2.5 and Dabo from SVN.
Here is the result of runing DaboDemo.py:
<output>
Traceback (most recent call last):
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
line 14576, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "C:\Python25\lib\site-packages\dabo\dApp.py", line 352, in initUIApp
self.uiApp.setup()
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\uiApp.py", line 303,
in setup
frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\__init__.py", line
1141, in createForm
frm = cls(*args, **kwargs)
File "c:\docume~1\jacek\ustawi~1\temp\tmpa7br5c.py", line 17, in __init__
super(dForm_91416667048, self).__init__(parent=parent,
attProperties=attProperties, *args, **kwargs)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dForm.py", line 873,
in __init__
BaseForm.__init__(self, preClass, parent, properties, attProperties,
*args, **kwargs)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dForm.py", line 44,
in __init__
fm.dFormMixin.__init__(self, preClass, parent, properties,
attProperties, *args, **kwargs)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dFormMixin.py", line
77, in __init__
attProperties, *args, **kwargs)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line
184, in __init__
self._afterInit()
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dForm.py", line 70,
in _afterInit
super(BaseForm, self)._afterInit()
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dFormMixin.py", line
137, in _afterInit
super(dFormMixin, self)._afterInit()
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line
318, in _afterInit
self.afterInit()
File "c:\docume~1\jacek\ustawi~1\temp\tmpa7br5c.py", line 589, in
afterInit
self.setupMenu()
File "c:\docume~1\jacek\ustawi~1\temp\tmpa7br5c.py", line 669, in
setupMenu
vm.remove("Show/Hide Sizer Lines")
AttributeError: 'NoneType' object has no attribute 'remove'
</output>
Simply, code in dynamically generated file tmpa7br5c.py:
vm = mb.getMenu("View")
doesn't return menu item object because there is not menu like "View".
--
Best regards
Jacek Kałucki
_______________________________________________
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]