Python Forum
Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens.
#1
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
Reply
#2
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/
Reply
#3
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?
Reply
#4
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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Problem installing turtle MasterJediKnight7 17 24,295 Mar-18-2024, 10:22 AM
Last Post: bmohamadyar313
  Trying to make a board with turtle, nothing happens when running script Quascia 3 607 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  Turtle Star Fill Color Yellow-White Interchanging Color Effect codelab 9 900 Oct-25-2023, 09:09 AM
Last Post: codelab
  Turtle Detection ChinaPlaneFlyer 1 623 Apr-17-2023, 02:49 PM
Last Post: deanhystad
  Turtle Graphics - Screen & Window Sizing jerryf 1 771 Feb-09-2023, 08:02 PM
Last Post: jerryf
  Turtle.setpos() vs text position on screen query ElectronWrangler 0 1,507 Nov-26-2022, 02:39 AM
Last Post: ElectronWrangler
  Adding Decimals to classes with OOP + rounding to significant digits (ATM demo) Drone4four 7 2,241 May-04-2022, 06:15 AM
Last Post: Drone4four
Exclamation Phyton Metin2 Game Left Click not working. Help anonym35 0 1,491 Feb-02-2022, 07:01 PM
Last Post: anonym35
  Turtle onkey() simonc8 12 7,284 Jun-29-2021, 09:09 AM
Last Post: simonc8
  Setup working directory in IDLE Pavel_47 3 3,667 Mar-06-2021, 08:59 AM
Last Post: Pavel_47

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020