On 3/23/10 5:31 PM, Ed Leafe wrote: > 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.
I have a redesign in mind (have had it in mind since Fall 2004, so don't hold your breath) that I've mentioned a few times. Currently the Dabo ui layer is too dependent on the presence of the underlying toolkit (wxPython). For example, wxPython's App object must be instantiated before any Dabo ui classes (or subclasses thereof) can even be defined. It would be much nicer to be able to have the Dabo UI API defined completely separate from the toolkit, so the toolkit need only be present right before a UI class is *instantiated*, not before classes can be defined. But, I predict that practicality will beat purity in this case. Even though I've wanted to do it, things seem to work well enough as they are. 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]
