Ed Leafe пишет:
Looks like you didn't initialize the UI. While Dabo only works with
wxPython now and for the foreseeable future, it is designed to be able
to work with any UI. You have to tell it that you are using wxPython;
typically in code that starts up Dabo there are lines like:
import dabo
dabo.ui.loadUI("wx")
So I take it that you are not using dApp as your main application
object? It would be very interesting to see the sorts of problems that
will result in, since lots of methods reference the app as a central
mediator object.
Okey! I have now embeded dGrid in the XRC frame, but now if I click with
right mouse button in the cell I got this error:
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 2768, in _onGridMouseRightClick
menu = dabo.ui.dMenu()
File
"/usr/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg/dabo/ui/uiwx/dMenu.py",
line 32, in __init__
self.Application.uiApp.Bind(wx.EVT_MENU_OPEN, self.__onWxMenuOpen)
AttributeError: 'NoneType' object has no attribute 'uiApp'
What should be done by this? How to disable it or/and make workaround?
I just wanna use dGrid and its advanced feature.
Thanks!
--
Basil Shubin
Freelance Software Developer
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users