On Aug 17, 2006, at 5:08 PM, roopesh wrote:

>
> Hi All,
>
> In my turbo gear application I want to use Calender component. I was
> not able to find any resources for doing it. Where can I get the
> documentation for doing the same?

I guess you're refering to the Calendar widget. If so, to use it:

from turbogears.widgets import CalendarDateTimePicker

def controller_method(...)
        return dict(calendar=CalendarDateTimePicker())

in your template:

${calendar.display()}

You can check all the availabe parameters you can pass to it to  
customize it's behaviour in widget browser @ the toolbox:

$ tg-admin toolbox

HTH,
Alberto

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