Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(56)  |  Call(56)  |  Derive(0)  |  Import(0)

src/d/j/django-admin-report-HEAD/example/lib/reportlab/platypus/tableofcontents.py   django-admin-report(Download)
    def wrap(self, availWidth, availHeight):
        text = self.textPattern % self._lastPageNum
        self._para = Paragraph(text, self.paraStyle)
        return self._para.wrap(availWidth, availHeight)
 

src/m/w/mwlib.rl-0.14.5/mwlib/rl/pagetemplates.py   mwlib.rl(Download)
            p = Paragraph(self.title, text_style())
            p.canv = canvas
            p.wrap(page_width - header_margin_hor*2.5, page_height) # add an extra 0.5 margin to have enough space for page number
            p.drawPara()
            canvas.restoreState()
            p = Paragraph(formatter.cleanText(pagefooter, escape=False), text_style())
            p.canv = canvas
            w,h = p.wrap(page_width - header_margin_hor*2.5, page_height)
            p.drawOn(canvas, footer_margin_hor, footer_margin_vert - 10 - h)
        canvas.restoreState()
            p = Paragraph('<br/>'.join([formatter.cleanText(line, escape=False) for line in footertext]),
                          text_style(mode='footer'))
            w,h = p.wrap(print_width, print_height)
            canvas.translate( (page_width-w)/2.0, footer_margin_vert - h - 0.25*cm)
            p.canv = canvas

src/m/w/mwlib.rl-HEAD/mwlib/rl/pagetemplates.py   mwlib.rl(Download)
            p = Paragraph(self.title, text_style())
            p.canv = canvas
            p.wrap(page_width - header_margin_hor*2.5, page_height) # add an extra 0.5 margin to have enough space for page number
            p.drawPara()
            canvas.restoreState()
            p = Paragraph(formatter.cleanText(pagefooter, escape=False), text_style())
            p.canv = canvas
            w,h = p.wrap(page_width - header_margin_hor*2.5, page_height)
            p.drawOn(canvas, footer_margin_hor, footer_margin_vert - 10 - h)
        canvas.restoreState()
                               for line in lines)
            p = Paragraph(txt, text_style(mode='footer'))
            w,h = p.wrap(print_width, print_height)
            canvas.translate( (page_width-w)/2.0, footer_margin_vert - h - 0.25*cm)
            p.canv = canvas

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/platypus/tableofcontents.py   mwlib.ext(Download)
    def wrap(self, availWidth, availHeight):
        text = self.textPattern % self._lastPageNum
        self._para = Paragraph(text, self.paraStyle)
        return self._para.wrap(availWidth, availHeight)
 

src/r/e/reportlab-3.1.8/src/reportlab/platypus/tableofcontents.py   reportlab(Download)
    def wrap(self, availWidth, availHeight):
        text = self.textPattern % self._lastPageNum
        self._para = Paragraph(text, self.paraStyle)
        return self._para.wrap(availWidth, availHeight)
 

src/r/e/ReportLab-HEAD/src/reportlab/platypus/tableofcontents.py   ReportLab(Download)
    def wrap(self, availWidth, availHeight):
        text = self.textPattern % self._lastPageNum
        self._para = Paragraph(text, self.paraStyle)
        return self._para.wrap(availWidth, availHeight)
 

src/r/o/rooibos-HEAD/rooibos/presentation/viewers.py   rooibos(Download)
            avail_width = width - inch
            avail_height = height - inch
            w1, h1 = p1.wrap(avail_width, avail_height)
            w2, h2 = p2.wrap(avail_width, avail_height)
            f = Frame(inch / 2, inch / 2, width - inch, height - inch,

src/m/w/mwlib.rl-0.14.5/mwlib/rl/toc.py   mwlib.rl(Download)
    def _getColWidths(self):
        p = Paragraph('<b>%d</b>' % 9999, pdfstyles.text_style(mode='toc_article', text_align='right'))        
        w, h = p.wrap(0, pdfstyles.print_height)
        # subtracting 30pt below is *probably* necessary b/c of the table margins
        return [pdfstyles.print_width - w - 30, w]

src/m/w/mwlib.rl-HEAD/mwlib/rl/toc.py   mwlib.rl(Download)
    def _getColWidths(self):
        p = Paragraph('<b>%d</b>' % 9999, pdfstyles.text_style(mode='toc_article', text_align='right'))        
        w, h = p.wrap(0, pdfstyles.print_height)
        # subtracting 30pt below is *probably* necessary b/c of the table margins
        return [pdfstyles.print_width - w - 30, w]

src/i/e/iellos-HEAD/lib/reportlab/platypus/tableofcontents.py   iellos(Download)
    def wrap(self, availWidth, availHeight):
        text = self.textPattern % self._lastPageNum
        self._para = Paragraph(text, self.paraStyle)
        return self._para.wrap(availWidth, availHeight)
 

  1 | 2 | 3  Next