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

All Samples(294)  |  Call(201)  |  Derive(3)  |  Import(90)
A spacer just takes up space and doesn't draw anything - it guarantees
a gap between objects.

src/d/j/django-admin-report-HEAD/example/lib/reportlab/graphics/barcode/test.py   django-admin-report(Download)
 
 
from reportlab.platypus import Spacer, SimpleDocTemplate, Table, TableStyle, Preformatted, PageBreak
from reportlab.lib.units import inch, cm
from reportlab.lib import colors
        story.append(PageBreak())
        story.append(Paragraph('Scale = %.1f'%scale, styleH2))
        story.append(Spacer(36, 12))
        for codeName in codeNames:
            s = [Paragraph('Code: ' + codeName, styleH2)]
            for hr in (0,1):
                s.append(Spacer(36, 12))
                dr.renderScale = scale
                s.append(dr)
                s.append(Spacer(36, 12))
            s.append(Paragraph('Barcode should say: ' + dr._bc.value, styleN))
            story.append(KeepTogether(s))

src/o/p/openerp-server-5.0.0-3/bin/report/render/rml2pdf/trml2pdf.py   openerp-server(Download)
                width = utils.unit_get('1cm')
            length = utils.unit_get(node.getAttribute('length'))
            return platypus.Spacer(width=width, height=length)
        elif node.localName=='section':
            return self.render(node)

src/o/p/openerp-core-7.0.406/openerp/report/render/rml2pdf/trml2pdf.py   openerp-core(Download)
                width = utils.unit_get('1cm')
            length = utils.unit_get(node.get('length'))
            return platypus.Spacer(width=width, height=length)
        elif node.tag=='section':
            return self.render(node)

src/t/e/template2pdf-0.6.5/template2pdf/t2p/trml2pdf.py   template2pdf(Download)
                width = utils.as_pt('1cm')
            length = utils.as_pt(node.getAttribute('length'))
            return platypus.Spacer(width=width, height=length)
        elif node.localName=='pageBreak':
            return platypus.PageBreak()

src/t/r/trml2pdf-HEAD/trml2pdf/trml2pdf.py   trml2pdf(Download)
				width = utils.unit_get('1cm')
			length = utils.unit_get(node.getAttribute('length'))
			return platypus.Spacer(width=width, height=length)
		elif node.localName=='pageBreak':
			return platypus.PageBreak()

src/d/j/django-admin-report-HEAD/example/lib/reportlab/lib/pygments2xpre.py   django-admin-report(Download)
def convertSourceFiles(filenames):
    "Helper function - makes minimal PDF document"
 
    from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, XPreformatted
    from reportlab.lib.styles import getSampleStyleSheet

src/b/r/BrainImagingPipelines-HEAD/bips/workflows/gablab/wips/scripts/QA_utils.py   BrainImagingPipelines(Download)
def write_report(cs,locations,percents,in_files,
                 des_mat,des_mat_cov,subjects, meanval,
                 imagefiles, surface_ims, thr, csize, fwhm,
                 onset_images):
    from reportlab.platypus import SimpleDocTemplate, Paragraph, Table, TableStyle, Spacer, PageBreak
    ptext = '<font size=10>%s</font>' % formatted_time
    elements.append(Paragraph(ptext, styles["Normal"]))
    elements.append(Spacer(1, 12))
 
    ptext = '<font size=22>%s</font>' %('Subject '+subjects+' Report')
    elements.append(Paragraph(ptext, styles["Normal"]))
    elements.append(Spacer(1, 24))
    ptext = '<font size=10>%s</font>' %("The contrast files are: ")
    elements.append(Paragraph(ptext, styles["Normal"]))
    elements.append(Spacer(1, 12))
 
    contrasts = []
        ptext = '<font size=10>%s</font>' %pt
        elements.append(Paragraph(ptext, styles["Normal"]))
        elements.append(Spacer(1, 12))
 
    ptext = '<font size=10>%s</font>' %("The stat images were thresholded at z = %s and min cluster size = %s voxels. FWHM = %d "%(thr,csize,fwhm[0]))

src/l/o/logilab-doctools-0.4.1/training_docs/flow_generators.py   logilab-doctools(Download)
from reportlab.lib.units import cm
from reportlab.lib.colors import black
from reportlab.platypus import (Paragraph, Table, TableStyle, Spacer,
                                FrameBreak, PageBreak)
 
                    )
        flow.append(attendee_tab)
        flow.append(Spacer(1, 0.1*cm))
        # Signatures table
        content = [ [ Paragraph(u"Date", style_normal_center),
                      ],
                  ]
        content.extend([ [day, Spacer(1, 1*cm), Spacer(1, 1*cm)]
                         for day in session.days])
        sign_tab = Table(content, [5.35*cm, 4*cm, 4*cm], None)
                    )
        flow.append(attendee_tab)
        flow.append(Spacer(1, 0.5*cm))
        # Signatures table
        content = []

src/o/p/openslides-1.5.1/openslides/motion/pdf.py   openslides(Download)
from reportlab.lib import colors
from reportlab.lib.units import cm
from reportlab.platypus import PageBreak, Paragraph, Spacer, Table, TableStyle
 
from openslides.config.api import config
    # submitter
    cell1a = []
    cell1a.append(Spacer(0, 0.2 * cm))
    cell1a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font>" % _("Submitter"),
                            stylesheet['Heading4']))
    cell1b = []
    cell1b.append(Spacer(0, 0.2 * cm))
                                _("Signature"), stylesheet['Heading4']))
        cell2b.append(Paragraph(42 * "_", stylesheet['Signaturefield']))
        cell2b.append(Spacer(0, 0.1 * cm))
        cell2b.append(Spacer(0, 0.2 * cm))
        motion_data.append([cell2a, cell2b])

src/m/y/myewb2-HEAD/myewb/apps/champ/views.py   myewb2(Download)
        from reportlab.lib.pagesizes import letter
        from reportlab.lib.styles import getSampleStyleSheet
        from reportlab.platypus import Paragraph, Image, Spacer, SimpleDocTemplate
        from reportlab.lib import enums
        import settings
    p.append(Paragraph("Engineers Without Borders Canada", normalStyle))
    p.append(Paragraph("Event Summary", normalStyle))
    p.append(Spacer(0, -50))
    img = Image(settings.MEDIA_ROOT + '/images/emaillogo.jpg', 100, 51)
    img.hAlign = 'RIGHT'
    p.append(img)
    #p.line(50, height - 90, width - 50, height - 90)
    p.append(Spacer(0, 10))
    p.append(Paragraph("<strong>" + str(activity.date) + "</strong>", rightAlign))
    p.append(Paragraph("Printed: " + str(date.today()), rightAlign))
    p.append(Spacer(0, -20))
 
    p.append(Paragraph("<strong>" + group.chapter_info.chapter_name + "</strong>", normalStyle))
    p.append(Spacer(0, 20))

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next