From e4ca4527734d0a53b0c6a6fa421be893bc637d5b Mon Sep 17 00:00:00 2001 From: sotolf2 <56679258+sotolf2@users.noreply.github.com> Date: Sat, 19 Oct 2019 15:02:35 +0200 Subject: [PATCH] Added highlighting if trying to change puzzle clue --- sudoku.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sudoku.py b/sudoku.py index 7c5405d..a9989fb 100644 --- a/sudoku.py +++ b/sudoku.py @@ -714,6 +714,8 @@ def __key_pressed(self, event): if self.row >= 0 and self.col >= 0 and event.char in "1234567890": if self.mode is Mode.solution and self.game.get_origin(self.row,self.col) == 0: self.game.set_cell(self.row, self.col, int(event.char)) + elif self.mode is Mode.solution: + self.highlight = int(event.char) elif self.mode is Mode.candidate: self.game.toggle_candidate(self.row, self.col, int(event.char)) self.__draw_puzzle()