reportlab/platypus/tables.py
changeset 2495 4952531cccfb
parent 2481 5620fd504c16
child 2523 0473810aff11
--- a/reportlab/platypus/tables.py	Fri May 13 19:22:10 2005 +0000
+++ b/reportlab/platypus/tables.py	Mon May 16 12:18:46 2005 +0000
@@ -198,10 +198,11 @@
 
 class Table(Flowable):
     def __init__(self, data, colWidths=None, rowHeights=None, style=None,
-                repeatRows=0, repeatCols=0, splitByRow=1, emptyTableAction=None, ident=None):
+                repeatRows=0, repeatCols=0, splitByRow=1, emptyTableAction=None, ident=None,
+                hAlign=None,vAlign=None):
         self.ident = ident
-        self.hAlign = 'CENTER'
-        self.vAlign = 'MIDDLE'
+        self.hAlign = hAlign or 'CENTER'
+        self.vAlign = vAlign or 'MIDDLE'
         if type(data) not in _SeqTypes:
             raise ValueError, "%s invalid data type" % self.identity()
         self._nrows = nrows = len(data)