Hi Ed,

On 08/01/2014 15:58, Ed Leafe wrote:
On Jan 8, 2014, at 7:58 AM, Werner <[email protected]> wrote:

Part of the inheritance tree of dControlMixin is dObject.
When I debug this the breakpoint in dObject.__init__ is not hit before I get 
the exception on line 512 which is in toolbar.py - dToolBarItem.__init__.
Strange, since your traceback shows this happening in the toolbar's 
_afterInit() method, which means that the __init__() have been fully executed 
first.
Looking at pemmixin.__init__ I see:

        self._initEvents()
        self._afterInit()

dPemMixinBase.__init__(self) ## don't use super(), or wx init called 2x.

which would explain the issue no, dPemMixinBase is inheriting from dObject.

Can I just change the order of these lines, i.e. move the dPemMixinBase.__init up to before self._initEvents or does that cause other issues?

Werner

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to