Python Forum
Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/Forum-Python-Coding)
+--- Forum: General Coding Help (https://python-forum.io/Forum-General-Coding-Help)
+--- Thread: Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. (/Thread-Help-Turtle-not-working-even-when-we-click-the-turtle-demo-in-IDLE-nothing-happens)



Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. - BertyBee - Jan-03-2019

Any help appreciated, learning python with young son and both complete beginners, son is going well and has been creating basic programs, he is just trying turtle and it just doesn't seem to be there. Even if he tries to open the turtle demo in IDLE nothing happens at all no new window nothing - completely uninstalled and reinstalled 3.7.2 no difference - doesn't seem to be anything he's doing so wondering if there are any other things/ settings that may need changing??? - any help would be much appreciated - Thanks


RE: Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. - nilamo - Jan-03-2019

Try running the demo from the command line. If there's an error, you'll be able to see it (instead of the window just closing before you can read it). Plus, IDLE is well known within the python community to be a really bad editor that doesn't even work with some modules.

Once it works from the command line, then try getting it to work from an editor. And once you're at that step, I personally think Visual Studio Code is a great (and free) product from Microsoft: https://code.visualstudio.com/


RE: Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. - BertyBee - Jan-03-2019

Hi nilamo - sorry but can you elaborate "Try running the demo from the command line" at the moment he is trying to run it from the of the three drop down options in the menu under Help. How is that done?


RE: Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. - SheeppOSU - Jan-04-2019

I'll elaborate. He/She meant to use python to bring out Turtle. Here.
import turtle         #Essential
turtle.Pen()          #Essential
tp = turtle.Pen()     #Helps to make it easier to type
tp.left(90)           #The rest is code to test it out
tp.color('red')   
tp.right(145)
tp.color('green')
tp.forward(120)
tp.left(145)
tp.color('blue')
tp.forward(100)
tp.right(90)
tp.penup()
tp.forward(50)
tp.pendown()
tp.right(90)
tp.forward(100)
tp.right(180)
tp.color('red')
tp.forward(40)
tp.right(90)
tp.color('green')
tp.circle(30, 180)