[reportlab-users] can't draw more then one line on a canvas

andy at reportlab.com andy at reportlab.com
Mon Apr 4 09:51:43 EDT 2005

First of all, your second line is starting and finishing in the same 

    c.line(6*cm, 12.7*cm, 6*cm, >12.7*cm)

Secondly, I think canvas.lines(*) is supposed to accept a list of 
coordinate tuples,
not of line methods.  You've been doing too much functional programming 
Your call is saying this:
c.lines(<call method line of canvas object>, <call method line of 
canvas object>)

It should be saying something like this:
    (6*cm, 14.7*cm, 10*cm, 14.7*cm),
    (6*cm, 12.7*cm, 6*cm, 12.7*cm)

Hope this helps,

Andy Robinson

More information about the reportlab-users mailing list