It seems you didn't see my answer:

http://groups.google.com/group/turbogears/browse_thread/thread/897491f6acacd70b




On 1/22/07, Raju Subban <[EMAIL PROTECTED]> wrote:
> Hi,
>   The above code goes on controllers.py.
>  This is an example piece from tg-admin toolbox -> Widgets -> Sample.
>  Dont' know how to really use this.
>  Is there an simple example template where we can plug this and see
>  Thank you
>  Raju
>  ----------------------------
>  class SingleSelectFieldDesc(CoreWD):
>      name = "Single Select Field"
>      for_widget =
> SingleSelectField("your_single_select_field",
>                                     options=[(1, "Python"),
>                                              (2, "Java"),
>                                              (3, "Pascal"),
>                                              (4, "Ruby")],
>                                     default=2)
>  --------------------------
>
>
>
>
>  >
>

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