Relative Content

Tag Archive for pythonturtle-graphicspython-turtle

Save image with Python Turtle Graphics?

I have been trying to create and export an image with python turtle graphics, and I am using turtle.getscreen().getcanvas().postscript(name="foo.esp") to export it (found here). When I call turtle.getscreen(), then the turtle shows up on the screen, and doesn’t hide, even when I call the turtle’s hideturtle() method.

Save image with Python Turtle Graphics?

I have been trying to create and export an image with python turtle graphics, and I am using turtle.getscreen().getcanvas().postscript(name="foo.esp") to export it (found here). When I call turtle.getscreen(), then the turtle shows up on the screen, and doesn’t hide, even when I call the turtle’s hideturtle() method.

Object filling incorrectly

im doing my uni’s basic programming course and haven’t used turtle since high school and was wondering why exactly this shape is filling incorrectly? pictures are attached as to how its filling, and how it should look. code is below.

Object filling incorrectly

im doing my uni’s basic programming course and haven’t used turtle since high school and was wondering why exactly this shape is filling incorrectly? pictures are attached as to how its filling, and how it should look. code is below.

Object filling incorrectly

im doing my uni’s basic programming course and haven’t used turtle since high school and was wondering why exactly this shape is filling incorrectly? pictures are attached as to how its filling, and how it should look. code is below.

Python Turtle – Exception has occurred: Terminator exception: no description

I am having trouble with running this code. I am trying to run an instance of turtle, successfully close it, and start a new instance of the turtle. I am able to complete the first iteration but I get a terminator exception raised: Exception has occurred: Terminator exception: no description at self.turt = Turtle(), when I debug the program.

Xcor jumps to 700k when I included screen.update()

I have tried shifting screen.update() into different parts of the code, but the problem still persist. However, removing screen.tracer(0) and screen.update() resolves the issue. But as the snake gets longer in length, without screen.update() the animation gets clunky.