On 3/23/10 10:58 AM, Ed Leafe wrote:
> On Mar 23, 2010, at 1:53 PM, Ricardo Aráoz wrote:
>
>> But my point is that you can not know (without looking deep into the
>> framework) if it's a property or an attribute, and therefore the upper
>> or lower case won't help you to determine if the prop/att belongs or not
>> to wx. (not really in your case, as it is a method :-)  )
>
>       Methods are indeed easier: if it starts with an upper-case character, 
> it's not Dabo.
>
>       For atts/props, yes, it is not obvious. However, the 80/20 rule applies 
> here: 80% (or possibly more) of the time you'll be working with a very small 
> subset of all the available properties, and you'll become familar with them 
> very quickly (e.g., Form, Caption, Visible, ControllingSizer, Children, 
> DataSource, DataField, Height, Width, RegID). The other 20% or less of the 
> time you'll have to look it up, and when you do you should be looking at the 
> docs or the source to find the available properties for the class.

And properties are always capitalized; attributes are always lower. And as Ed 
said 
before, we never (hardly ever) expose attributes to users of the framework.

One thing happened in wxPython to confuse things in 2.7: wxPython added 
properties to 
their framework (so now you have not only SetValue() and GetValue(), but also 
the 
Value property which wraps those getters and setters). The unfortunate thing is 
that 
the wxPython properties use the same capitalization conventions that Dabo uses, 
so 
they overlap. Dabo's properties trump wxPython's, but it is still confusing.

Paul
_______________________________________________
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]

Reply via email to