'Renders as tabbed area where you can choose which tab to
render. Tabs is a list of tuples (tab_name, tab_pane).'

def __init__(self, tabs, linkable=False):

    buttons = []
    for (tab_name, title, pane) in tabs:
        onclick = ("return    select_tab_menu(this,    '%s')" % tab_name)
        buttons.append(JsButton(title, tab_name=tab_name, onclick=onclick))
    self.tabmenu = JsNavMenu(buttons, type='tabmenu')
    self.tabs = tabs
    Templated.__init__(self, linkable=linkable)
