Ed Leafe wrote:
> On Jan 21, 2009, at 5:10 PM, Paul McNett wrote:
>
>> Hmm I think it should auto-bind to all found matches, only not go up
>> further than the
>> form it is on. Anyway, if this is what is bugging my code then I'll
>> work around it.
>
>
> I think the whole walking up the containership hierarchy is bogus.
> What do you say to checking self, self.Parent and self.Form, and
> nothing else?
At first glance that sounds very reasonable. If someone has a complicated panel
with
subpanels and wants to catch events happening from controls in the subpanels,
then
they can just bind to those events explicitly.
We should encourage the use of auto-binding to the simplest cases, so your
suggestion
is fine by me.
I could even see an argument for only checking self and self.Form as it doesn't
really make sense to encourage this style at anything but the form level:
def onHit_txtLastName(self, evt):
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]