|
Getting Started with Python Turtle
-
Download a suitable IDE for working with Python. I use PyCharm
-
You may also have to download and install Python, but I think recent versions PyCharm will install it for you if it can't find it.
-
Download the Python Turtle Examples
and extract the files.
- Drag the three files into the project (or copy them into the appropriate directory).
- 001_FirstTurtle.py is very basic and just draws two shapes.
- 002_CheckerBoard.py draws a simple checkerboard.
- util.py contains a couple of methods that are used in 002_CheckerBoard.py to make the window better.
I recommend that you use the getTurtleAndScreen method to get your turtle/screen objects.
-
Run these and look at the code. Then start making your own!
- See Turtle Graphics Documentation to see more about
what Turtles can do.
-
I recommend numbering your files like I did (e.g. 01_FirstTurtle, 02_CheckerBoard, 03_MyCoolOne, etc.),
and every time you make tweaks that change it significantly enough,
consider copying your file and making a new one so you can keep a history of all of your scripts.
|