From: Kevin A. <al...@se...> - 2001-09-01 19:09:20
|
Patrick worked some more magic and added "dot dot" support to the Font class, so it is now legal to do something like: self.components.field1.font.size = 12 Previously you would have needed to get the font first, change the font size, then set the font of the widget. Obviously the notation above is what you would expect, so it is great to see it working. The same kind of "dot dot" magic will be required for other classes or complex mutable types like the items list for Choice, List, and RadioGroup if we want dot notation to work consistently. This change is in cvs which impacted font.py and widget.py, feel free to play around with it. The only thing important to remember now is that there is a one to one relationship between a Font instance and a widget because the Font keeps track of the widget as its parent. ka |