Ed Leafe пишет:
On Oct 26, 2006, at 7:50 AM, Basil Shubin wrote:

After I patched the Dabo with you patch, I got the following error when click on column labels:

Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg/dabo/lib/eventMixin.py", line 87, in raiseEvent
    bindingFunction(event)
File "/usr/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg/dabo/ui/uiwx/dGrid.py", line 2746, in _onGridHeaderMouseRightClick
    help=_("Autosize the column based on the data in the column."))
File "/usr/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg/dabo/ui/uiwx/dMenu.py", line 184, in append
    item = self._getItem(bindfunc, help, bmp, menutype, **kwargs)
File "/usr/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg/dabo/ui/uiwx/dMenu.py", line 284, in _getItem
    itmtyp = self._getItemType(menutype)
File "/usr/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg/dabo/ui/uiwx/dMenu.py", line 311, in _getItemType
    if self.Application.Platform != "GTK":
AttributeError: 'NoneType' object has no attribute 'Platform'

This is what I think will make such a project nearly impossible. There is a standard design in the way that Dabo classes work, and these assumptions are all throughout the code base.

I agree that it would be way cool to be able to be able to drop dabo.ui controls into non-Dabo environments, but I'm afraid that the amount of re-writing would be way too great to attempt it right now. We're trying to get a stable 0.7 release out, and it really isn't the time to be tearing up all of the code.

After I have slighly patch the dMenu.py and dMenuItem.py files, I can
have a right-button menu over column label with just one item 'Autosize
column', but this function seams not working :-( Although there is no
any error nor warnings in a console...

Maybe there be possible a workaround? How to disabel this context menu?

--
Basil Shubin
Freelance Software Developer



--- StripMime Report -- processed MIME parts ---
multipart/mixed
 text/plain (text body -- kept)
 text/x-patch
 text/x-patch
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to