def drawTOCEntryEnd(canvas, kind, label): '''Callback to draw dots and page numbers after each entry.''' label = label.split(',') page, level, key = int(label[0]), int(label[1]), eval(label[2],{}) style = self.getLevelStyle(level) if self.dotsMinLevel >= 0 and level >= self.dotsMinLevel: dot = ' . ' else: dot = '' if self.formatter: page = self.formatter(page) drawPageNumbers(canvas, style, [(page, key)], availWidth, availHeight, dot)
def drawTOCEntryEnd(canvas, kind, label): '''Callback to draw dots and page numbers after each entry.''' style, page, key, dot = end_info[int(label)] drawPageNumbers(canvas, style, [(page, key)], availWidth, availHeight, dot)
def drawTOCEntryEnd(canvas, kind, label): '''Callback to draw dots and page numbers after each entry.''' style, page, key, dot = end_info[int(label)] drawPageNumbers(canvas, style, [(page, key)], availWidth, availHeight, dot)