From 05e7defc15b9d54a9c7a96970e43be42843a09e6 Mon Sep 17 00:00:00 2001 From: Dylan Tintenfich Date: Wed, 20 Jul 2022 19:58:49 -0300 Subject: [PATCH] Rename ```GraphingCalculator.clear()``` to ```clean()``` This avoids overwriting turtle.clear() method and use it in GraphingCalculator.clean() --- curvipy/graphing_calculator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curvipy/graphing_calculator.py b/curvipy/graphing_calculator.py index 706919f..dff2b8a 100644 --- a/curvipy/graphing_calculator.py +++ b/curvipy/graphing_calculator.py @@ -243,11 +243,11 @@ def _draw_axis(self) -> None: self._goto_without_drawing((-w * 2, 0)) self.goto((w * 2, 0)) - def clear(self) -> None: + def clean(self) -> None: """ - Clears the graphic calculator screen. + Cleans the graphic calculator screen. """ - turtle.clearscreen() + self.clear() turtle.bgcolor(self.background_color) if self.show_axis: self._draw_axis()