From 6d62f8c23e8ab76a2034dde08cff8302c9989fdc Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Tue, 30 Jan 2024 09:12:35 +0200 Subject: Fixing printing of statusline. --- tui/tui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tui/tui.py') diff --git a/tui/tui.py b/tui/tui.py index 5514ea3..4409134 100644 --- a/tui/tui.py +++ b/tui/tui.py @@ -78,7 +78,7 @@ class Tui(): self.draw.matrix(matrix, x, y) self.draw.status_line( f"{self.level_name}: " + - "K " if self.suppress else f"{'Kuolit!':<30}" + ("K " if self.suppress else f"{'Kuolit!':<30}") ) self.kbd.read_action() @@ -87,7 +87,7 @@ class Tui(): self.draw.matrix(matrix, x, y) self.draw.status_line( f"{self.level_name}: " + - "V " if self.suppress else "{'Voitit!':<30}" + ("V " if self.suppress else f"{'Voitit!':<30}") ) self.kbd.read_action() -- cgit v1.2.3