Python Forum
What does turtle.Turtle() actually do?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does turtle.Turtle() actually do?
#2
Never used Turtle, but I think turtle.Turtle() is "turtle" is the module, "Turtle" is the Turtle class in the module... aka your player or some other moveable object.

So in a general sense when you call a class like:
player = turtle.Turtle()  #don't know exact syntax
You are creating a Turtle object named "player".
karabakh likes this post
Reply


Messages In This Thread
RE: What does turtle.Turtle() actually do? - by michael1789 - Dec-11-2020, 03:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Problem installing turtle MasterJediKnight7 17 25,048 Mar-18-2024, 10:22 AM
Last Post: bmohamadyar313
  Trying to make a board with turtle, nothing happens when running script Quascia 3 770 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  Turtle Star Fill Color Yellow-White Interchanging Color Effect codelab 9 1,212 Oct-25-2023, 09:09 AM
Last Post: codelab
  Turtle Detection ChinaPlaneFlyer 1 702 Apr-17-2023, 02:49 PM
Last Post: deanhystad
  Turtle Graphics - Screen & Window Sizing jerryf 1 957 Feb-09-2023, 08:02 PM
Last Post: jerryf
  Turtle.setpos() vs text position on screen query ElectronWrangler 0 1,712 Nov-26-2022, 02:39 AM
Last Post: ElectronWrangler
  Turtle onkey() simonc8 12 7,738 Jun-29-2021, 09:09 AM
Last Post: simonc8
Smile PROJECTILE WITH TURTLE artnote1337 2 2,785 Dec-26-2020, 03:39 PM
Last Post: MK_CodingSpace
  Is there a way to move text created by turtle.write()? derekered 7 6,232 Dec-16-2020, 09:44 AM
Last Post: itexamples
  SOLVED - Collision detection - TURTLE OuateDePhoque 9 11,661 Nov-18-2020, 06:29 PM
Last Post: OuateDePhoque

Forum Jump:

User Panel Messages

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