reportlab/platypus/test/testtables.py
changeset 356 377367fe28cb
parent 255 ee9e321e747d
child 494 54257447cfe9
equal deleted inserted replaced
355:3a8dd5f93921 356:377367fe28cb
    30 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    30 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    31 # PERFORMANCE OF THIS SOFTWARE. 
    31 # PERFORMANCE OF THIS SOFTWARE. 
    32 #
    32 #
    33 ###############################################################################
    33 ###############################################################################
    34 #	$Log: testtables.py,v $
    34 #	$Log: testtables.py,v $
       
    35 #	Revision 1.11  2000/07/12 14:23:12  rgbecker
       
    36 #	Table argument order changed
       
    37 #
    35 #	Revision 1.10  2000/06/01 16:27:56  rgbecker
    38 #	Revision 1.10  2000/06/01 16:27:56  rgbecker
    36 #	pageSize is wrong at present
    39 #	pageSize is wrong at present
    37 #
    40 #	
    38 #	Revision 1.9  2000/06/01 15:23:06  rgbecker
    41 #	Revision 1.9  2000/06/01 15:23:06  rgbecker
    39 #	Platypus re-organisation
    42 #	Platypus re-organisation
    40 #	
    43 #	
    41 #	Revision 1.8  2000/05/17 15:37:33  rgbecker
    44 #	Revision 1.8  2000/05/17 15:37:33  rgbecker
    42 #	Changes related to removal of SimpleFlowDocument
    45 #	Changes related to removal of SimpleFlowDocument
    58 #	License text fixes
    61 #	License text fixes
    59 #	
    62 #	
    60 #	Revision 1.2  2000/02/15 15:47:10  rgbecker
    63 #	Revision 1.2  2000/02/15 15:47:10  rgbecker
    61 #	Added license, __version__ and Logi comment
    64 #	Added license, __version__ and Logi comment
    62 #
    65 #
    63 __version__=''' $Id: testtables.py,v 1.10 2000/06/01 16:27:56 rgbecker Exp $ '''
    66 __version__=''' $Id: testtables.py,v 1.11 2000/07/12 14:23:12 rgbecker Exp $ '''
    64 __doc__='Test script for reportlab.tables'
    67 __doc__='Test script for reportlab.tables'
    65 from reportlab.platypus import Spacer, SimpleDocTemplate, Table, TableStyle
    68 from reportlab.platypus import Spacer, SimpleDocTemplate, Table, TableStyle
    66 from reportlab.lib.units import inch
    69 from reportlab.lib.units import inch
    67 from reportlab.lib import colors
    70 from reportlab.lib import colors
    68 
    71 
    69 def getTable():
    72 def getTable():
    70     t = Table(
    73     t = Table((('','North','South','East','West'),
    71             (72,36,36,36,36),
       
    72             (24, 16,16,18),
       
    73             (('','North','South','East','West'),
       
    74              ('Quarter 1',100,200,300,400),
    74              ('Quarter 1',100,200,300,400),
    75              ('Quarter 2',100,400,600,800),
    75              ('Quarter 2',100,400,600,800),
    76              ('Total',300,600,900,'1,200'))
    76              ('Total',300,600,900,'1,200')),
       
    77              (72,36,36,36,36),
       
    78              (24, 16,16,18)
    77             )
    79             )
    78     return t
    80     return t
    79 
    81 
    80 def makeStyles():
    82 def makeStyles():
    81     styles = []
    83     styles = []