nvda
9a1a9354 - When setting a TextInfo for a class or object: if it is always the same for each object then set it as a class attribute. If it is different for some instances, make a TextInfo getter (_get_TextInfo method). Never set a TextInfo instance variable in __init__ etc as it becomes hard to work out exactly what TextInfo will be used after all initialization.

Commit
17 years ago
When setting a TextInfo for a class or object: if it is always the same for each object then set it as a class attribute. If it is different for some instances, make a TextInfo getter (_get_TextInfo method). Never set a TextInfo instance variable in __init__ etc as it becomes hard to work out exactly what TextInfo will be used after all initialization.
Parents
Loading