(self, coldesc)
return tip
Return an header tool tip text for an `column` descriptor.
Return an header tool tip text for an `column` descriptor.
Return an header tool tip text for an column descriptor .
def _tooltip(self, coldesc):
        """
        Return an header tool tip text for an `column` descriptor.
        """
        if isinstance(coldesc, TableModel.Basket):
            return None

        labels = self._labels
        variable = coldesc.var
        pairs = [(escape(key), escape(str(variable.attributes[key])))
                 for key in labels if key in variable.attributes]
        tip = "<b>%s</b>" % escape(variable.name)
        tip = "<br/>".join([tip] + ["%s = %s" % pair for pair in pairs])
        return tip
def _tooltip ( self , coldesc ) : if isinstance ( coldesc , TableModel . Basket ) : return None labels = self . _labels variable = coldesc . var pairs = [ ( escape ( key ) , escape ( str ( variable . attributes [ key ] ) ) ) for key in labels if key in variable . attributes ] tip = "<b>%s</b>" % escape ( variable . name ) tip = "<br/>" . join ( [ tip ] + [ "%s = %s" % pair for pair in pairs ] ) return tip