Thank you so much Shiv. When I use Class WidgetsList, I know how to pass the text from the "widgets.TextField" to the controllers.py by "action" But my problem is when I use the "turbogears.widgets.Button", I don't know how to pass the variables to controllers.py. Is there any funcation could be used ? I have found document about it Thx again cazy.
On Mar 27, 11:53 am, Shiv kumar <[email protected]> wrote: > Dear Cazy, > Your problem statement is very generic, what I have understood is that you > are having radio buttons/checkboxes in your view (.kid) file and you want to > do something depending upon which radiobutton/checkbox(es) you have > selected. > > You have to provide name and id for each item (html element) in your kid > file. And when you will submit the form, all your values will be passed to > controllers as kwargs{}. And you can extract the value for each key and do > the needful. > > Shiv > > 2009/3/26 Cazy <[email protected]> > > > > > > > For example: > > When I press the button, I want the controllers.py know which item I > > choose > > > Thx a lot > > cazy- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

