From febd7dd1ecad9d07eed2e769b7bc19c21d662ff0 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Wed, 6 Nov 2019 10:51:05 +0100 Subject: [PATCH] Pad now works properly. --- locate2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locate2.py b/locate2.py index c417b5b..bf0b17c 100644 --- a/locate2.py +++ b/locate2.py @@ -92,9 +92,9 @@ class Pad(Screen): to_print += self._mat[dy][dx] to_print += "\n" to_print = to_print[:-1] - print(to_print[:-width], end="") + print(to_print[:-width-1], end="") if ask_for_input or fancy: - return input(to_print[-21:-1] if fancy else "> ") + return input("\n" + (to_print[-width:-1] if fancy else "> ")) else: - print(to_print[-21:], end=endl) + print("\n" + to_print[-width:], end=endl) return None