Skip to content

Commit

Permalink
Rename GraphingCalculator.clear() to clean()
Browse files Browse the repository at this point in the history
This avoids overwriting turtle.clear() method and use it in
GraphingCalculator.clean()
  • Loading branch information
dylannalex committed Jul 20, 2022
1 parent fb133cb commit 05e7def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions curvipy/graphing_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 05e7def

Please sign in to comment.