tables.py: allow for h/vAlign constructor agruments to be used
authorrgbecker
Mon, 16 May 2005 12:18:46 +0000
changeset 2495 4952531cccfb
parent 2494 86a787d4d532
child 2496 d34c1cc2f4b0
tables.py: allow for h/vAlign constructor agruments to be used
reportlab/platypus/tables.py
--- 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)