1,606 questions
0
votes
3
answers
59
views
trinket.io TypeError "unexpected keyword argument 'shape'"
I'm trying to move pieces of a high school comp sci project to trinket and I keep getting the following error:
TypeError: <native JS>() got an unexpected keyword argument 'shape' on line __ in ...
0
votes
1
answer
102
views
Thonny turtle frozen screen in Thonny
When trying to write different functions with the turtle module in Thonny, my screen froze. I've been trying to find out why, but haven't had any luck with it.
It's a simple code, so I'm unsure what ...
-5
votes
1
answer
103
views
How can I move the blue turtle to x = 280 using repeated upward semicircular ‘hops’ in Python turtle? [closed]
I’m building a turtle race. I want the blue turtle to move to x=280 by repeating this pattern:
draw a downward semicircle (“bowl”)
then a short straight stride to the right
repeat until it reaches ...
0
votes
1
answer
158
views
I need another way to fill a shape other than begin_fill() and end_fill()
I want to know if Python Turtle has a fill option other than begin_fill() and end_fill(), because my project is to draw Spongebob. Spongebob's body has fractions of ovals on its borders, so I ...
4
votes
1
answer
60
views
Turtle not detecting key presses in Python [duplicate]
Here is a HUGELY simplified version of my code:
from turtle import Turtle, Screen
import time
speed_x = 20
speed_y = 29
def move_right():
print('exectuted')
def game_loop():
ball.goto(ball....
1
vote
1
answer
19
views
Turtle pauses when I try to turn it
Here is my code:
from turtle import Turtle, Screen
import time
import random
def check_wall_collision():
if ball.xcor() > (window.window_width() / 2) - 20 or ball.xcor() < -(window....
0
votes
1
answer
77
views
Distinguishing callbacks for different events when using the same function
I am coding minesweeper in python turtle. I have made it generate 10x10 button layout using this script:
position_x = -400
position_y = -200
number_colum = 0
rows_buttons = []
for i in range(10):
...
-1
votes
2
answers
68
views
Issue with entering data python
I'm working on a silly page for my friends, however when the code askes for user input I am incapable of entering any data. How can I possibly fix this?
# import the turtle module
import turtle as ...
0
votes
1
answer
101
views
Why can't I see the image equally spaced to the right with python turtle?
I'm trying to create the Breakout game with python's turtle module, but for something I haven't yet identified I can't center the image correctly!
from turtle import Turtle
class Game():
def ...
0
votes
1
answer
56
views
Turtle - screen.update() not working with copy method?
I have a list with several turtle instances. I want to create a copy of one object and let this one move forward.
This works fine. But when I disable screen udpates and do it manually in my code it ...
-1
votes
1
answer
65
views
Im having problems running 2 functions at the same time [duplicate]
Im a coding beginner who just got into python turtle. I have recently been working on a project where you control 2 characters. They are trying to shoot each other over a river. But i ran into an ...
0
votes
1
answer
48
views
How can I make the rate at which obstacles are created proportionate to the movement speed of the obstacles?
I'm making a game similar to Subway Surfers where there are 3 lanes and obstacles come at the player. The obstacles move faster and score goes up every 16th time the game loop is repeated. That all ...
2
votes
2
answers
117
views
Tkinter With Turtle
I was creating a tkinter/turtle program similar to MS paint and I have the barebones Turtle finished but I am unsure of how to add the turtle into tkinter as a sort of window (Having the tkinter as ...
0
votes
0
answers
26
views
Why can't I install modules in python [duplicate]
I basically tried installing turtle in python and it gave me an error reading
ERROR: Could not find a version that satisfies the requirement turtle (from versions: none) ERROR: No matching ...
-3
votes
1
answer
130
views
Is there any practical use for the turtle module in Python? [closed]
Is there any practical use for the turtle module in Python? It is good for practicing graphics, but is that all the module is good for? It's objectively slow, yet new versions of Python continue to ...