Hi all, I've been playing with TG widgets and there is one little
problem with the select fields on which I came upon. I've made a
subclass of WidgetList with some widgets in it, and I have two
SingleSelectFields in it, and I would like to change their contents
dynamically - options and default values. When I made the subclass of
WidgetList I put it in a TableForm which is used for showing all my
widgets and also for validations in the corresponding handler methods.
The problem is that I don't know what to put in the data for
${form.display(data)} call to address one of my single select fields
for updating it's current options. So, if the names of my
SingleSelectFields are list1 and list2, what should be given as a key
values for the dictionary data? Is it possible at all? I tried setting
this parameters in form.display_field_for call, and it works, but this
destroys the table layout  and removes my labels :( Any help?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to