You have a few options. First option is to roll your own entirely. If the tabs are static, and everything is known in advance, this is not a bad idea. A second option is to use tgext.menu ( https://bitbucket.org/pedersen/tgext.menu/ ). Using that, you can easily add simple decorators to create your own named menu (such as 'tabbar'), add in your own javascript templates and CSS, and generate the result you're looking for.
Those are the two that come to mind, anyway. On Tue, Sep 27, 2011 at 6:49 AM, [email protected] <[email protected]>wrote: > Would it be possible to write multiple controller function each with > its own template. Then display each as a element of a tab menu? > > Example: > > class Root(controllers.RootController): > """The root controller of the application.""" > > expose(template="project.templates.template01") > def fun1(self): > > return dict(data = data) > > expose(template="project.templates.template02") > def fun2(self): > > return dict(data = data) > > expose(template="project.templates.template03") > def fun3(self): > > return dict(data = data) > > expose(template="project.templates.view") > def view(): > tabber = tabberWidget() > return dict(tabber=tabber) > > Where the html would be something like > > <div id="tabber" class="tabber"> > <div class="tabbertab"> > fun1 > </div> > <div class="tabbertab"> > fun2 > </div> > <div class="tabbertab"> > fun3 > </div> > </div> > > > Thanks > > -- > 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. > > -- Michael J. Pedersen My IM IDs: Jabber/[email protected], AIM/pedermj022171 Yahoo/pedermj2002, MSN/[email protected] My Online Resume: http://www.icelus.org/ Twitter: pedersentg -- 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.

