Also related to style. tito raised interresting question on IRC:
<tito> for example, we provide MTButton, a very very simple class
<tito> but we derivate from button lot of widget
<tito> imagine, i want to change the drawing of button, make it nicer
<tito> should i change the base class for everyone ?
<tito> or making a new class, and derivate all the other class too ?
very interresting question. not sure about best solution. maybe use
delegates? (I remeber talking with tito about delegates a little a
while ago, but for something else). You could have like a
ButtonRenderer class which is used by any button class to render
itself, when you want button rendered differently, you swicth its
ButtonRenderer with a different one like PrettyButtonRenderer (really
these just have to imlpement draw...mayeb we can even just switch draw
method dynamically without need for objects). with python we can hide
a lot of this behind the scenes.
--
Thomas