On Mar 23, 2010, at 8:14 PM, Ian Simcock wrote:

> First time posting, so don't abuse me too much. :-)

        Aww, c'mon... who are we supposed to abuse?  ;-)

> This may have been too much trouble, and even if it's not it might be 
> too late now to change, but wouldn't it have been better if all the UI 
> objects only had Dabo Attributes etc? Then there would never be any 
> confusion as to what's Dabo and what's the UI (wx at the moment, but one 
> day, anything). So the object would only have all of the Dabo entries 
> plus one new one, WrappedObject. WrappedObject would then be a reference 
> to the underlying object that can then be used on the odd occasions that 
> you want to access it directly. This would perhaps also help developers 
> keep in mind that one day there might/will be other UI libraries and 
> that they are doing something that will bite them if they ever want to 
> change.


        We actually did consider such an approach, but it proved too 
problematic. This was quite some time ago, so I don't remember if the problem 
was with wxPython or with our then-limited mastery of Python, but I do remember 
that the mixin approach proved much cleaner.


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

Reply via email to