[reportlab-users] Tablestyle.add() tuple unpack problem

James StCyr reportlab-users@reportlab.com
Mon, 23 Sep 2002 15:10:37 -0400


Derek,

It appears that you didn't put in the line size parameter.  It goes 
just prior to the color definition.

Jim

----- Original Message -----
From: Derek Basch <dbasch@yahoo.com>
Date: Monday, September 23, 2002 3:01 pm
Subject: [reportlab-users] Tablestyle.add() tuple unpack problem

> Hello all,
> I have run into a small problem. I am using this code:
> 
> http://www.geocities.com/dbasch/PDFTables.txt
> 
> to test some Platypus table functions. I am trying to
> use the TableStyle classes 'add' function to add some
> additional styles after the the class instance is
> declared, (line 147).
> 
> According to the User Guide I have passed the proper
> structure to the add function:
> 
> LIST_STYLE.add([('BACKGROUND', (0,0), (-1,0),
> colors.Color(0,0.7,0.7))])
> 
> Also, I can create a TableStyle instance using the
> interactive interpretor and the 'add' and
> 'getCommands' functions work just fine. Can anyone
> tell me what im doing wrong??
> ...oh yeah, heres the traceback:
> 
> http://www.geocities.com/dbasch/traceback.txt
> 
> Thanks everyone,
> Derek Basch
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>