On Nov 15, 2007, at 5:14 AM, VGSoftware wrote:
>> I don't understand why this happens, but somewhere the wires are
>> getting crossed. The problem is not that the subsequent controls are
>> masked.TextCtrl (checking the type or using isinstance() will show
>> that), but that the code *thinks* that they are masked, and calls
>> methods as if they *were* masked controls. Remember, if they truly
>> were masked controls, they *would* have the _autofit attribute.
>
> But have you noticed *where* we get the _autofit error?
> textctrl.py:264 inside the SetFont method of BaseMaskedTextCtrl...
> Plain wx.TextCtrl *shouldn't* even call method, right?
OK, the fault is in the way dTextBox dynamically determines its
superclasses. The code on line 25 of dTextBox.py reads:
dTextBox.__bases__ = (tbm.dTextBoxMixin, masked.TextCtrl)
which then modifies the *class* definition, not the instance
definition. The datanav just seem to make it easier for that to cause
a problem.
I hope to have a fix later today.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]