Hello,

I was trying to define a CompoundWidget with TGwidgets and could not get 
it working because I was defining all the attributes within the __init__ 
method.

After reading the widgets.base.py source I discovered that 
member_widgets was to be defined at the "class level" and not in the 
__init__ method because it is then used as 
self.__class__.member_widgets. Why not simply self.member_widgets ???

Actually, my goal was to define a widget where some fields would be 
defined at instanciation time depending on a parameter passed at its 
creation...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to