diff --git a/main.py b/main.py index de5ef54..5a0a615 100644 --- a/main.py +++ b/main.py @@ -67,7 +67,8 @@ def on_click(self, cell): if not cell: return x, y = cell - self.board[x][y] = (self.board[x][y] + 1) % 2 + if not self.drawing: + self.board[x][y] = (self.board[x][y] + 1) % 2 def get_neighbours(self, x, y): def get(r, c):