[Python] AttributeError: 'Turtle' object has no attribute 'turtlesize' on line 23 in main.py

Discussão em 'Python' iniciado por Stack, Novembro 30, 2024.

  1. Stack

    Stack Membro Participativo

    import turtle

    drawTurtle = turtle.Turtle()
    drawTurtle.shape("turtle")
    drawTurtle.speed(500)
    drawTurtle.hideturtle()
    drawTurtle.penup()
    drawTurtle.goto(180,65)
    drawTurtle.pendown()
    drawTurtle.goto(-180, 65)
    drawTurtle.goto(-75, 65)
    drawTurtle.goto(-75, 155)
    drawTurtle.goto(-75, -180)
    drawTurtle.goto(-75, -75)
    drawTurtle.goto(-180, -75)
    drawTurtle.goto(180, -75)
    drawTurtle.goto(75, -75)
    drawTurtle.goto(75, -180)
    drawTurtle.goto(75, 155)
    getClickedturtle = turtle.Turtle()
    getClickedturtle.shape("square")
    getClickedturtle.turtlesize(stretch_wid=100, stretch_len=100, outline=100)

    def getcords(x, y):
    print(x, y)
    drawTurtle.goto(x, y)
    getClickedturtle.onclick(getcords)


    im trying to make the turtle size bigger but its not working im using turtle trinket this error shows up AttributeError: 'Turtle' object has no attribute 'turtlesize' on line 23 in main.py

    im trying to make the turtle size bigger but its not working

    Continue reading...

Compartilhe esta Página