On Jan 4, 2007, at 10:26 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
>> Q1. After I have created these objects I can see them as
>> cmdButton1 and so
>> on- no problem. Shouldn't I also be able to see them as
>> self.cmdButton or am I thinking too much in a VFP way as in
>> "Thisform.<object name>"?
>
> Not uless you explicitly create the object as self.myObject.
> Otherwise
> the button is bound to the name in the local (function) scope, and the
> binding is 'lost' when the function exits. The button will still
> exist,
> but will not be a property of the class.
Normally in Python that's true. But we've added some goodies in
Dabo, such as automatically binding the Name property of an object
when it is created to its containing Parent object.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users