generated from mwc/lab_turtle
program terminates when window closes now.
This commit is contained in:
@@ -4,7 +4,8 @@ from turtle import (
|
|||||||
goto,
|
goto,
|
||||||
pensize,
|
pensize,
|
||||||
begin_fill,
|
begin_fill,
|
||||||
end_fill
|
end_fill,
|
||||||
|
mainloop
|
||||||
)
|
)
|
||||||
from math import sin, cos, tau, pi
|
from math import sin, cos, tau, pi
|
||||||
|
|
||||||
@@ -29,4 +30,4 @@ for i in range(segments + 1):
|
|||||||
goto(coords[i])
|
goto(coords[i])
|
||||||
right(90)
|
right(90)
|
||||||
end_fill()
|
end_fill()
|
||||||
input()
|
mainloop()
|
||||||
|
|||||||
Reference in New Issue
Block a user