On Nov 17, 2008, at 2:03 PM, Bob Sysero llc Dev wrote:
> Quick question in the ClassDesigner using the editor when I select
> Form
> and then the method afterInitAll:
> self.quickButtons = [self.QuickButton1, self.QuickButton2, ... ]
>
> #1 - Why is the "Form" not included in the"self.QuickButton1" like
> "self.Form.QuickButton1"
The 'Form' property refers to "the form in which I am contained".
Since the form is not contained by any other form, 'self.Form' would
evaluate to None.
Using RegIDs add those IDs to the form as addressable attributes.
> #2 -When setting self.quickButtons in the afterInitAll will my
> switchButton see the "self" in the target = self.quickButtons[btnNum]?
I'm not quite sure what you mean. Are you thinking that the literal
string 'self.quickButtons' is stored, perhaps? That's not the case.
Rather, 'self.quickButtons' is resolved to an attribute of the form,
which is a list of buttons, and then the index value in 'btnNum' is
used to obtain a reference to a particular button. Any remaining code
that uses that reference doesn't care how the reference was arrived
at; all it cares is that it is a reference to an object.
-- Ed Leafe
_______________________________________________
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/[EMAIL PROTECTED]