turtle-graphics Questions
3
I have encountered an issue with the turtle graphics code. Despite trying various methods to hide the turtle, such as using bob.hideturtle() at different points in the code, the arrow remains visib...
Erasion asked 18/9 at 10:17
2
Solved
Although I know I can install ColabTurtle to use Turtle on a Colab Notebook, I cannot figure out how.
Could someone please give me an example on how to run Turtle codes on Colab?
Bravo asked 28/11, 2019 at 7:23
6
I have tried to make functions for turtle to make it extremely easy to draw shapes. The code looks like this:
import turtle as t
def square():
tw = t.Screen()
for i in range(4):
t.forward(100)
...
Wartburg asked 6/8, 2017 at 17:2
6
Solved
I made a small tkinter game that uses turtle for graphics. It's a simulation of the Triangle Peg Game from Cracker Barrel that is able to tell the player the next best move to make at any point in ...
Browse asked 15/5, 2017 at 5:52
1
Solved
I'm new to Python and trying out Turtle through Tutorials. This question turned out to be verbose, my bad.
I have designed 2 Games handled by 2 Functions (in a separate module) which are called fro...
Substitute asked 21/5 at 23:10
2
Solved
While playing around with Python's Turtle module, I used some key events as the official documentation states:
turtle.onkey(fun, key)
Parameters:
fun – a function with no arguments or No...
Cab asked 21/1, 2016 at 19:11
1
Is there a way to export a python turtle drawing to a video?
The video should contain the real-time drawing process.
In particular I'm not interested in a screen-recording workaround, but a solutio...
Seigel asked 13/8, 2021 at 10:12
4
Solved
I am trying read a file and split a cell in each line by a comma and then display only the first and the second cells which contain information regarding the latitude and the longitude.
This is the...
Spic asked 5/5, 2015 at 0:30
10
How do I set the startpos (topleft of my turtle square) when starting my code?
And I don't mean that it starts from the middle and then goes to that position.
I want the turtle to start there.
Botanical asked 5/2, 2013 at 17:11
3
I have an assignment which is asked to set two turtles in a race track (same size but separate track). I am able to make them move, but the second one moves only when the first one moved a half of ...
Firstfoot asked 14/10, 2016 at 19:9
10
Solved
I am trying to write a program that draws a sierpinski tree with python using turtle. Here is my idea:
import turtle
def draw_sierpinski(length,depth):
window = turtle.Screen()
t = turtle.Turtle...
Palaeontography asked 10/9, 2014 at 18:41
2
I hide all turtles that are supposed to be hidden. I am wondering why there is always a little arrow in the middle of the screen (see screen shot below code).
import time
from turtle import Screen
...
Damper asked 23/9, 2023 at 21:48
2
Solved
I tried to make a pong game on the turtle extension on Python and everything went smoothly.
I wanted to restart the game when a player reached an certain amount of points.
The game restarts proper...
Aforetime asked 19/4, 2020 at 19:15
3
I'm trying to make a connect-the-dot python game. I want the game to register 2 button presses. Example: if the user presses Up and Right arrow key, the turtle goes 45 degrees north east.
here is ...
Ahumada asked 19/12, 2017 at 3:27
7
Solved
Is there a way to use two turtles at the same time to draw two circles at the same time in one window? I tried this code but two turtles draw in separated windows
from multiprocessing import Proce...
Hersey asked 21/10, 2013 at 15:19
1
Solved
I'm trying to do a Pong game using turtle to practice a little OOP. My objective here is to make the paddles and set their places.
There's two different files:
the main>
from turtle import Scree...
Gripe asked 18/9, 2023 at 2:54
1
Main.py:
from turtle import Screen
from Paddle import Paddle
#creating screen
screen = Screen()
screen.screensize(1000, 600)
screen.bgcolor('black')
screen.title('Pong')
screen.tracer(0)
#paddle ...
Eudosia asked 23/8, 2023 at 23:36
6
Solved
I am trying to write some code that will start a Screen fullscreen (fill the whole screen without having to click the maximize button)
def __init__(self, states = 2):
self.window = turtle.Screen(...
Estovers asked 8/1, 2016 at 23:49
7
Solved
How can I play with a turtle and how can I use a turtle?
I have trouble getting the thing to work as in the picture shown below (ignore the colors).
from turtle import *
from math import *
def f...
Wembley asked 21/9, 2013 at 19:30
5
Solved
I need to draw a bar graph using Python's turtle graphics and I figured it would be easier to simply make the pen a thick square so I could draw the bars like that and not have to worry about makin...
Kaceykachina asked 2/12, 2014 at 14:57
1
Solved
I made this program, when trying to make a chase game, but I stumbled along something really strange. I created a clone of the turtle, but at the middle of the map a third one appeared.
Does anybod...
Edwinedwina asked 24/2, 2023 at 17:17
2
I'm making a chat program, but I have run across a problem: the screen only updates after input. I'm using turtle to show the chat (I know, turtle isn't really that good for this purpose, but it's ...
Charlean asked 13/5, 2014 at 0:20
1
I am trying to make a simple galaga type game where the ship moves back and forth along the bottom of the screen and shoots automatically. It runs as expected at first but slows down drastically pr...
Kwok asked 6/8, 2022 at 17:26
1
I'm using Turtle, trying to learn the basics of GameDev.
As I'm following the video, I got an error that the tutor didn't get.
My code is basically the same, the only diference is that I'm using mo...
Macronucleus asked 13/10, 2021 at 20:3
1
Solved
I am using Python 3.9 with tkinter and tcl version 8.6, so according to an answer here on stackoverflow from the year 2010, I should be able to draw rotated texts. And actually I am able to draw ro...
Holton asked 24/6, 2022 at 22:14
1 Next >
© 2022 - 2024 — McMap. All rights reserved.