summaryrefslogtreecommitdiff
path: root/cameltris/player.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-11-15 22:06:43 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-11-15 22:06:43 +0100
commit8382b7923ddc57b80409c01e212fe716c9d22357 (patch)
tree58283992842d907a44ad56cb4b6dfc9b950bd9b8 /cameltris/player.py
parentf4049ca3bbd79c2c6568e519cde92836cc79769a (diff)
Change enum constants to uppercase
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'cameltris/player.py')
-rw-r--r--cameltris/player.py4
1 files changed, 2 insertions, 2 deletions
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):