Next / Previous / Contents / TCC Help System / NM Tech homepage

47.3. LumpedLayout.label()

cbchistlib.py
# - - -   L u m p e d L a y o u t . l a b e l

    def label(self, colx):
        '''Return the label for column [colx].
        '''
        #-- 1
        # [ return (key for column [colx], with left zeroes removed) +
        #   ' ' + (number of years in column [colx]) ]
        return ("%s (%d)" %
                (self._keyList[colx].lstrip('0'),
                 self._yearCounts[colx]))