2020欧洲杯时间表

Questions tagged [python-turtle]

2020欧洲杯时间表 The python turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways.

Filter by
Sorted by
Tagged with
0
votes
2answers
24 views

Draw a circle with rectangles python turtle

I wanna draw (this shape) polygon with knowing rectangle length and width, and number of rectangles, And Here's my code: from turtle import * color('black') begin_fill() length = 50 width = 20 ...
0
votes
1answer
24 views

How do I fix the NotImplementedError in Python?

I am a beginner coding so I don't know a lot about python, but if you answered this it would be much appreciated. This is what I have so far: import turtle def clear1(): import os os.system('cls'...
0
votes
2answers
49 views

My text in my clock python is not aligning properly

My text in my turtle module is not aligning properly, it is aligned up and to the left. I want it to align exactly where the turtle is. Can anyone help? I tried setting the xcor and ycor of the turtle ...
0
votes
0answers
32 views

How to register more than one shape in python turtle with the help of PIL module?

Here is the code. Only one image is registered through the PIL module, but I want to register more than one, like 32 images. How do I do that? from PIL import ImageTk, Image from turtle import Screen,...
1
vote
1answer
17 views

How can you make two or more turtles perform a task at the same time?

My goal for this program was to get used to python's built-in "turtle" method. My goal was to program four (ninja) turtles to walk simultaneously in a square. While there were no absolute errors in my ...
0
votes
2answers
53 views

How can I save a Turtle canvas as an image (.png or .jpg) in Python 3

I've been working with the turtle module and want to use it as a starting point to work on a simple image recognition program that could recognize numbers/letters. I need to be able to save the turtle ...
0
votes
3answers
49 views

Measure the distance between turtles

I'm doing a turtle race in Python, where we should reinvent the base code. My idea was to create a podium and put the 3 first winners. I managed to put the first winner in the podium, but now I don't ...
0
votes
0answers
21 views

In my Dx ball project, how to get a ball to disappear if a brick touches it? [closed]

I am building a DX ball game. Now I am stuck. I want that if the ball touches the bricks it should disappear, but I don't know how to do it. I tried a lot. import turtle wn = turtle.Screen() wn....
1
vote
2answers
20 views

4 triangles of different sizes aligned in the same way

I require 4 triangles of different sizes aligned in the same way as they are in my my code, but with the parameters I state below: I want to draw a set of triangles. There should be 4 triangles with ...
-4
votes
1answer
44 views

Python will not accept a variable I entered

I entered a variable in python, but it will not be accepted. I'm not sure why this is happening. I have tried to change the name of the variable, changing capitalization in the name of it, and ...
0
votes
1answer
19 views

Why do I keep getting a Terminator error for Python Turtle?

I'm writing a simple console application where you type commands. One such command includes: draw. draw uses the Python turtle module and some functions from my own module. Here's my main code (some ...
0
votes
0answers
32 views

importing turtle module in VS Code gives ModuleNotFoundError: 'tkinter'

I am trying to import turtle module. but it shows me module name 'tkinter' is not found. although it is a built-in module.and i didnt import it directly.(i think turtle module imports tkinter for me.) ...
1
vote
1answer
23 views

turtle onkeypress() does not respond

I am creating a game, but when I press the Up or Down arrow keys, nothing happens. Instead of moving when I press those keys, the turtles have already moved when I run the code. Here is the code: ...
-2
votes
0answers
10 views

How to install turtle via Git Bash

When I entered the line pip install turtle on my Git Bash then I got this: Collecting turtle Using cached turtle-0.0.2.tar.gz (11 kB) ERROR: Command errored out with exit status 1: command:...
1
vote
3answers
69 views

Merge the code from 2 for-loops into 1 for-loop

I want to make my script as short as possible: from turtle import * for _ in range(10): lt(72) fd(71) rt(108) fd(71) for _ in range(10): for s in [(29,90),(73,72),(73,90),(29,72)]:...

15 30 50 per page
1
2 3 4 5 6