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

All Samples(103)  |  Call(103)  |  Derive(0)  |  Import(0)
Takes a color object, allowing colors to be referred to by name

src/p/d/pdfgrid-0.2.0/samples/genpdf.py   pdfgrid(Download)
        if i % 2 == 1:
            canv.setStrokeColor(black)
            canv.setFillColor(black)
            canv.rect(0, 0, size[0], size[1], fill=True)
        if i % 2 == 1:
            canv.setFillColor(white)
        else:
            canv.setFillColor(black)
        if i % 2 == 0:
            canv.setStrokeColor(bgColor)
            canv.setFillColor(bgColor)
            canv.rect(0, 0, pageSize[0], pageSize[1], stroke=True, fill=True)
            canv.setFillColor(black)

src/p/d/pdfnup-0.4.1/samples/genpdf.py   pdfnup(Download)
        if i % 2 == 1:
            canv.setStrokeColor(black)
            canv.setFillColor(black)
            canv.rect(0, 0, size[0], size[1], fill=True)
        if i % 2 == 1:
            canv.setFillColor(white)
        else:
            canv.setFillColor(black)
        if i % 2 == 0:
            canv.setStrokeColor(bgColor)
            canv.setFillColor(bgColor)
            canv.rect(0, 0, pageSize[0], pageSize[1], stroke=True, fill=True)
            canv.setFillColor(black)

src/p/y/python-skyfield-HEAD/skyfield/documentation/logo.py   python-skyfield(Download)
    c = Canvas('logo.pdf', pagesize=(w, h))
 
    c.setFillColor('white')
    c.rect(0, 0, w, h, stroke=0, fill=1)
 
    c.setFillColor(bright_star_color)
                c.saveState()
                greek_letter, offset = greeks[letter]
                c.setFillColor(greek_color)
                c.drawString(x+offset, y+0.5, greek_letter)
                if letter == 'Alp':
                    c.setFillColor(alpha_star_color)
 
 
    c.setFillColor(dim_star_color)
    for x, y, r in small_glyphs:
        c.circle(x, y, r, stroke=0, fill=1)

src/p/l/plan-HEAD/plan/pdf/views.py   plan(Download)
 
    page.setFont('Helvetica', 10)
    page.setFillColor(colors.HexColor('#666666'))
    page.drawString(width - page.stringWidth(note) - 2, -height+2, note)
 

src/s/i/site-HEAD/api/balloter.py   site(Download)
        c.setFillColorRGB(0.8745, 0.94117, 0.84705)
        c.rect(tl[0], br[1], GROUP_WIDTH, division_height, fill=1)
        c.setFillColor(black)
 
        for i in range(0, len(candidates)):

src/g/e/gerbil-HEAD/gerbil/gerbil.py   gerbil(Download)
def create_footer(options):
    pdf = StringIO.StringIO()
    can = canvas.Canvas(pdf, pagesize=A4)
    width, height = A4
    can.setFillColor(gray)

src/g/e/gerbil-0.7/gerbil/gerbil.py   gerbil(Download)
def create_footer(options):
    pdf = StringIO.StringIO()
    can = canvas.Canvas(pdf, pagesize=A4)
    width, height = A4
    can.setFillColor(gray)

src/g/e/gerbil-HEAD/gerbil.py   gerbil(Download)
def create_footer(options):
    pdf = StringIO.StringIO()
    can = canvas.Canvas(pdf, pagesize=A4)
    width, height = A4
    can.setFillColor(gray)

src/r/e/reportlab-3.1.8/tests/test_pdfgen_general.py   reportlab(Download)
    c.line(7*inch, 6*inch, 7*inch, 4.5*inch)
 
    c.setFillColor(colors.black)
    c.setFont('Times-Roman',10)
    c.drawString(6*inch, 6.2*inch, "Testing decimal alignment")
    c.drawAlignedString(7*inch, 5.6*inch, "3,456.789")
    c.drawAlignedString(7*inch, 5.4*inch, "123")
    c.setFillColor(colors.red)
    c.drawAlignedString(7*inch, 5.2*inch, "(7,192,302.30)")
 
        for c in palette:
            c.density = 1.0
            canv.setFillColor(c)
            canv.setFont('Helvetica',20)
            canv.drawString(x,80,'This is %s' % c.spotName)
            canv.setFont('Helvetica',6)
            canv.rect(x,y,50,50,fill=1)
            canv.setFillColor(c.clone(density=0.5))
            canv.rect(x+55,y,20,20,fill=1)
            canv.setFillColor(colors.CMYKColor(0,0,1,0))

src/m/w/mwlib.ext-0.13.2/upstream-src/tests/test_pdfgen_general.py   mwlib.ext(Download)
    c.line(7*inch, 6*inch, 7*inch, 4.5*inch)
 
    c.setFillColor(colors.black)
    c.setFont('Times-Roman',10)
    c.drawString(6*inch, 6.2*inch, "Testing decimal alignment")
    c.drawAlignedString(7*inch, 5.6*inch, "3,456.789")
    c.drawAlignedString(7*inch, 5.4*inch, "123")
    c.setFillColor(colors.red)
    c.drawAlignedString(7*inch, 5.2*inch, "(7,192,302.30)")
 
        for c in palette:
            c.density = 1.0
            canv.setFillColor(c)
            canv.setFont('Helvetica',20)
            canv.drawString(x,80,'This is %s' % c.spotName)
            canv.setFont('Helvetica',6)
            canv.rect(x,y,50,50,fill=1)
            canv.setFillColor(c.clone(density=0.5))
            canv.rect(x+55,y,20,20,fill=1)
            canv.setFillColor(colors.CMYKColor(0,0,1,0))

  1 | 2 | 3  Next