turtle-graphics Questions
4
I think my code is nothing wrong. Because it's very simple, it worked very well on my Windows PC, and shows no error message at all.
from turtle import Turtle, Screen
turtle = Turtle()
screen = Sc...
Ramin asked 12/11, 2021 at 7:32
7
Solved
I have recently begun using the turtle module in Python, and I admit, I am a complete novice. I have been having trouble getting the graphics window in which the turtle does its drawing to st...
Subsidy asked 26/9, 2013 at 2:16
3
Solved
So, i'm trying to learn python and every time i post a question here it feels like giving in...
I'm trying to make my own class of turtle.Turtle.
import turtle
class TurtleGTX(turtle.Turtle):
...
Munitions asked 25/2, 2012 at 4:48
2
I am trying to get the coordinates of a mouse click in the turtle screen, but my code isn't working. I guess this is related to time but I tried to add a 5 seconds delay but it didn't help.
Here i...
Reunionist asked 18/3, 2017 at 19:2
3
I have been using turtle package in python idle. Now I have switched to using Jupyter notebook.
How can I make turtle inline instead of opening a separate graphic screen. I am totally clueless abou...
Bulletin asked 21/1, 2017 at 10:22
12
I am creating diagrams with the turtle package in Python, and it is successful to some extent, except for one problem. Once turtle generates the diagram that I have in code, it causes the program t...
Infection asked 27/8, 2011 at 21:17
2
When I run a turtle graphics cell and draw some stuff its alright, but if I close the window and run the cell again I get a weird error called Terminator, and I have to restart the kernel in order ...
Swatter asked 22/1, 2016 at 22:23
2
When i am using turtle module to draw a circle with this simple function:
def draw_shape(self):
canvas = Screen()
t = Turtle()
t.circle(self.r)
canvas.exitonclick()
For the first time ...
Bayonet asked 17/10, 2017 at 18:27
5
Solved
I am using python turtle for a project where I need turtle to draw characters. However, when I try to use the RGB value for a color, I keep getting an error message. The input is:
turtle.color((151...
Citizenship asked 27/5, 2013 at 17:58
3
Solved
I am learning turtle graphics in python and for some reason there is a second turtle on the screen and I haven't even created a second turtle. How can I get rid of the second turtle?
import turtle...
Feeding asked 8/6, 2020 at 13:41
1
while using th epython library turtle i am getting the error
"error"
AttributeError module ColabTurtle.Turtle has no attribute undo
"code"
import ColabTurtle.Turtle as t
t.init...
Moravian asked 7/6, 2021 at 4:51
3
I have a problem with the onscreenclick function. I have two onscreenclick commands in my code and when i press the screen they both exicute at once i want to somehow make it so that the first one ...
Canonicals asked 27/5, 2021 at 19:39
4
Solved
Code:
import turtle
import random
import time
s = turtle.getscreen()
turtle.screensize(canvwidth=400, canvheight=400)
t = turtle.Turtle()
t.pensize(0)
t.shape('square')
t.color("black")
...
Trela asked 3/5, 2021 at 16:59
2
Solved
I am a making a blackjack game with cards using turtle and each time I play a hand turtle just prints over the last game instead of clearing the window. Is there a method that closes the window whe...
Yahweh asked 2/12, 2015 at 2:7
2
Solved
I made windmill but it is moving so fast. I use turtle library to do that and t2 is only for circle, t makes the main job. I use tracer/update and I tried some numbers inside tracer but nothing cha...
Megan asked 11/1, 2021 at 9:32
2
When using Python Turtle, how do you hide turtle icon(s)/pointer(s) in turtle graphics in Turtle code so that it won't show when testing?
Mortal asked 27/9, 2015 at 4:25
3
I am having trouble getting my turtle to be able to follow the arrow keys, any help on how to do so would be greatly appreciated. I'm sure this question has been asked before, though I can't seem t...
Bayonne asked 17/4, 2017 at 10:28
2
Solved
I'm new to programming and I downloaded Python and got it running in Visual Studio Code. I was messing around with the turtle module and its functions.
The functions themselves work but pylint ma...
Edwardoedwards asked 20/10, 2018 at 5:12
3
I made a turtle drawing program in python, but my canvas in which the turtle draws is not big enough. I am trying to make this canvas bigger so that I can fit more on the page and make the stuff bi...
Harmonic asked 2/10, 2015 at 0:40
1
Solved
I want to be able to create some turtles which display values by subclassing turtle.Turtle.
These turtles should display their value as text centered in their own shape. I also want to be able to p...
Vitriform asked 2/8, 2020 at 10:50
2
I like what the turtle module does in Python and I'd like to output the entire animation of it drawing the shape. Is there a way to do this? GIF/MP4/anything that shows the animation. Note, I know ...
Bowleg asked 25/12, 2016 at 9:23
0
New to Python here.
I am messing around with Turtle module, and when I try to create a Turtle type class the following way I get the error message:
AttributeError: 'Buttons' object has no attribute...
Louise asked 10/8, 2020 at 17:52
4
Solved
How can I find the coordinate of a turtle in python?
For example, if the turtle is located at (200, 300), how would I retrieve that position?
Hifalutin asked 14/7, 2017 at 8:4
1
I'm new to programming in Python. About three weeks ago I finished a Tetris clone using the turtle module to test my skills. I was under the impression that when I turned off the animation tracer, ...
Chou asked 2/8, 2020 at 19:55
4
I am working with a student that uses Google colab. I tried introducing her to turtle graphics. We got this error: TclError: no display name and no $DISPLAY environment variable.
When I try to look...
Ophthalmology asked 3/7, 2019 at 19:35
© 2022 - 2024 — McMap. All rights reserved.