From 8382b7923ddc57b80409c01e212fe716c9d22357 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 15 Nov 2021 22:06:43 +0100 Subject: Change enum constants to uppercase Signed-off-by: Olivier Gayot --- cameltris/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cameltris/player.py') diff --git a/cameltris/player.py b/cameltris/player.py index 88d62d4..cc7c11a 100644 --- a/cameltris/player.py +++ b/cameltris/player.py @@ -228,7 +228,7 @@ class Player: def refresh_piece_preview_canvas(self) -> None: """ Refresh the display of the next piece """ - self.piece_preview_canvas.fill(Color.black.value) + self.piece_preview_canvas.fill(Color.BLACK.value) non_empty_rows = list() for row in self.next_piece.elements: @@ -259,7 +259,7 @@ class Player: assert self.current_piece.coord is not None - self.grid_canvas.fill(Color.black.value) + self.grid_canvas.fill(Color.BLACK.value) for row_idx, row in enumerate(self.playfield.grid): for col_idx, element in enumerate(row): -- cgit v1.2.3