Hi,

I'm still having trouble using the widget.

You mention:

>>You can name 'for_widget' whatever you want.  Pass for_widget out to
>>your template in the dictionary returned by the controller method, then
>>call ${for_widget.display()} in your template.  If you want to customize
>>the contents of the popup window, copy the template = """... code out of
>>the widget browser source code tab, paste it in your controller as
>>for_widget.template="""..., then modify it to suit your project.

I just tried out the following in my controller:

        popupwidget = SubModal()
        popupwidget.template="""
    <h2>Test</h2>
    """
        return dict(popupwidget=popupwidget)

Then in the kid file I call:

${popupwidget.display()}

Nothing happens.

-vidya



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