Skip to content

Commit

Permalink
Window closing fix (TheAlgorithms#8625)
Browse files Browse the repository at this point in the history
* The window will now remain open after the fractal is finished being drawn, and will only close upon your click.

* Update fractals/sierpinski_triangle.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Tianyi Zheng <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 1, 2023
1 parent f8fe72d commit f7c5e55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fractals/sierpinski_triangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ def triangle(

vertices = [(-175, -125), (0, 175), (175, -125)] # vertices of triangle
triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))
turtle.Screen().exitonclick()

0 comments on commit f7c5e55

Please sign in to comment.