I managed to find a way to do this using the code below.
The only drawback is that it closes the canvas after it is completed.
def main():
wn = turtle.Screen()
alex = turtle.Turtle()
alex.forward(150)
alex.left(90)
alex.forward(75)
if __name__ == "__main__":
main()
If anyone has another idea on how to close the canvas, that would be awesome.
Thank,
Dani
Danyc source
share