Skip to content Skip to sidebar Skip to footer
Showing posts with the label Turtle Graphics

Importerror: No Module Named Tkinter When Importing Swampy.turtleworld

I am using Python 3.4 and following along the book 'Think Python: how to think like a computer … Read more Importerror: No Module Named Tkinter When Importing Swampy.turtleworld

Textinput() Equivalent In Python 2.x

I need to accept info from the user in python's turtle. however the turtle.textinput function o… Read more Textinput() Equivalent In Python 2.x

How To Output Variable On Turtle Screen?

I want to output a variable on the Turtle screen. But as the variable changes, the previous value i… Read more How To Output Variable On Turtle Screen?

How To Make The Turtle Follow The Mouse In Python 3.6

I'm assigned to create a similar version of slither.io in python. I planned on using Turtle. Ho… Read more How To Make The Turtle Follow The Mouse In Python 3.6

Python Turtle Module Causes Os X To Crash

I'm working through Think Python chapter 4, where they tell you to type the following to see if… Read more Python Turtle Module Causes Os X To Crash

Start And Stop Python Turtle With Space Bar

I am trying to code a program that starts and stops a turtle by pressing the space bar. I got the c… Read more Start And Stop Python Turtle With Space Bar

How To Handle Clicks On A Turtle And Clicks Off Of A Turtle Separately?

Using the Python 3 'turtle' module, I am trying to handle two different click conditions se… Read more How To Handle Clicks On A Turtle And Clicks Off Of A Turtle Separately?

Building A Built-in Text Field For Turtle, While Statement Doesn't Work

I have built a text field module that has one problem: why does Python IDLE not work for while...br… Read more Building A Built-in Text Field For Turtle, While Statement Doesn't Work

Turtle-graphics Keypress Event Not Repeating

The following code behaves differently in different environments. On my Windows machine (Windows 10… Read more Turtle-graphics Keypress Event Not Repeating

Understanding Functions In Python

I'm trying to use the Turtle module in Python to draw the American flag using separate function… Read more Understanding Functions In Python

Get Coordinates Of "treasure" (turtles) In Maze Game That Uses Python Tkinter And Turtle

I am using Python 3 to make a maze using tkinter and turtle graphics. Most of the code works, excep… Read more Get Coordinates Of "treasure" (turtles) In Maze Game That Uses Python Tkinter And Turtle

Rounded Edge Rectangles With Python Turtle

Is there another way to add a rounded edge to square/rectangle shapes apart from drawing a circle a… Read more Rounded Edge Rectangles With Python Turtle

How Do I Get The Turtle Canvas Screen To Move With A Turtle Module?

For a class project, I'm trying to make a Rogue-like game with Python (3.7.3) Turtle. I want to… Read more How Do I Get The Turtle Canvas Screen To Move With A Turtle Module?

Problems Prompting User For Input In Python

import sys import turtle t=turtle.Pen def what_to_draw(): print ('What to do you want to se… Read more Problems Prompting User For Input In Python

Python Turtle Positional Errors

I've been trying to scale a Turtle drawing by a single axis and after some testing, I managed t… Read more Python Turtle Positional Errors

Turtle Graphics - How Do I Control When The Window Closes?

I have a small python script which draws some turtle graphics. When my script has finished running,… Read more Turtle Graphics - How Do I Control When The Window Closes?

Is Setting `turtle.speed(0)` Necessary When We Have Turtle.tracer(0)

Is there a difference between: import turtle turtle.tracer(0) turtle.speed(0) while True: turtl… Read more Is Setting `turtle.speed(0)` Necessary When We Have Turtle.tracer(0)

How To Get The Area Of Shape Filled Using Turtle

I graphed a fractal shape in Python using turtle, and am trying to get the area of this fractal aft… Read more How To Get The Area Of Shape Filled Using Turtle

Why Does My Python Turtle Shape Size Decrease When Pressing 'shift'

I am trying to create a turtle in Python so I could increase/ decrease it's size by pressing +/… Read more Why Does My Python Turtle Shape Size Decrease When Pressing 'shift'

I Am Making A Traffic Light With Python Turtle And At The End Of The Sequence I Want All The Lights To Blink Yellow

This is my code. All I want is for three turtles to move/blink at the same time like a broken traf… Read more I Am Making A Traffic Light With Python Turtle And At The End Of The Sequence I Want All The Lights To Blink Yellow