def resizeTo(self, rows, cols):
    if app.config.strict_debug:
        assert (rows >= 0), rows
        assert (cols >= 0), cols
    self.rows = rows
    self.cols = cols
def resizeTo(self, rows, cols):
    if app.config.strict_debug:
        assert (rows >= 0), rows
        assert (cols >= 0), cols
    self.rows = rows
    self.cols = cols