Skip to content

Commit f7c5e55

Browse files
yanvoitianyizheng02pre-commit-ci[bot]
authored
Window closing fix (#8625)
* 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>
1 parent f8fe72d commit f7c5e55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: fractals/sierpinski_triangle.py

+1
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,4 @@ def triangle(
8282

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

0 commit comments

Comments
 (0)