def __init__(self, document, cols, rows, width): nodes.NodeVisitor.__init__(self, document) self.cols = cols self.rows = rows self.width = width self.height = 0