X-Git-Url: http://git.veekun.com/pseudoku.git/blobdiff_plain/a49a2fc56c430884ad137031168836c9a3c6bfe9..f66d11f5304e3c2c3853d69acfc864bcb8301903:/pseudoku/render/__init__.py?ds=sidebyside diff --git a/pseudoku/render/__init__.py b/pseudoku/render/__init__.py index fb700bd..a3593df 100644 --- a/pseudoku/render/__init__.py +++ b/pseudoku/render/__init__.py @@ -16,8 +16,8 @@ class GridRenderer(object): parts = [] parts.append(self.before_grid(grid)) - for idx, row in enumerate(grid._rows): - if idx and idx % grid._box_height == 0: + for idx, row in enumerate(grid.rows): + if idx and idx % grid.box_height == 0: parts.append(self.inside_grid(grid)) parts.append(self.render_row(row)) parts.append(self.after_grid(grid)) @@ -30,7 +30,7 @@ class GridRenderer(object): parts.append(self.before_row(row)) for idx, cell in enumerate(row.cells): - if idx and idx % row._grid._box_width == 0: + if idx and idx % row.grid.box_width == 0: parts.append(self.inside_row(row)) parts.extend(self.render_cell(cell)) parts.append(self.after_row(row))