Why am i having turtle.Terminator error on this code?

import turtle as t



def const_1():
    #Constelação de Andrômeda
    t.goto(0,0) #Começa no ponto beta
    t.left(120)
    t.fd(100)
    t.left(42)
    t.fd(65)
    t.left(180)
    t.fd(65)
    t.left(108)
    t.fd(99)
    t.left(180)
    t.fd(99)
    t.right(-30)
    t.fd(100)
    t.left(111)
    t.fd(65)
    t.left(180)
    t.fd(65)
    t.left(90)
    t.fd(100)
    t.left(35)
    t.fd(90)
    t.left(180)
    t.fd(90)
    t.left(100)
    t.fd(20)
    t.right(30)
    t.fd(80)
    t.penup()
    t.goto(78,-65)
    t.pendown()
    t.left(175)
    t.fd(170)
    t.left(65)
    t.fd(20)
    t.right(41)
    t.fd(60)
    t.exitonclick()

def const_2():
    #Constelação Antlia
    t.penup()
    t.goto(0,50)
    t.pendown()
    t.right(130)
    t.fd(100)
    t.penup()
    t.goto(0,50)
    t.pendown()
    t.left(105)
    t.fd(150)
    t.exitonclick()


def const_3():
    #Constelação Apus
    t.goto(0,0)
    t.right (70)
    t.fd(30)
    t.penup()
    t.goto(30,-20)
    t.pendown()
    t.left(60)
    t.fd(80)
    t.exitonclick()

def const_4():
    #Constelação Aquarius
    turt1 = t.Turtle()
    turt2 = turt1.clone()
    turt3 = turt1.clone()

    #tartaruga 1
    turt1.up()
    turt1.goto(-150,0)
    turt1.down()
    turt1.left(60)
    turt1.fd(215)
    turt1.right(30)
    turt1.fd(90) 
    turt1.right(10)
    turt1.fd(70)
    turt1.right(10)
    turt1.fd(50)
    turt1.right(50)
    turt1.fd(150)
    turt1.left (15)
    turt1.fd(150)



    #tartaruga 2
    turt2.up()
    turt2.goto(0,0) 
    turt2.down()
    turt2.left(60)
    turt2.fd(60)
    turt2.left(20)
    turt2.fd(80)
    turt2.left(70)
    turt2.fd(105) 
    turt2.hideturtle()



    #tartaruga 3
    turt3.up()
    turt3.goto (150,261)
    turt3.down()
    turt3.right(105)
    turt3.fd(140)
    turt3.left(40)
    turt3.fd(80)
    turt3.hideturtle()
    t.exitonclick()

def const_5():
# Constelação Aquila
    t1 = t.Turtle()
    t2 = t1.clone()
    t3 = t1.clone()


    #tartaruga 1
    t1.up()
    t1.goto(50,-50)
    t1.down()
    t1.left(110)
    t1.fd(145)
    t1.hideturtle()



    #tartaruga 2
    t2.up()
    t2.goto(0,85)
    t2.down()
    t2.left(60)
    t2.fd(150)
    t2.right(230)
    t2.fd(150)
    t2.left(115)
    t2.fd(130)
    t2.hideturtle()



    #tartaruga 3
    t3.hideturtle()
    t3.up()
    t3.goto(0,85)
    t3.down()
    t3.right(170)
    t3.fd(150)
    t3.left(230)
    t3.fd(150)
    t3.right(10)
    t3.fd(20)
    t3.hideturtle()
    t.exitonclick()

def menu():
    while True:
        print ("------ CONSTELAÇÕES ------")
        print ("| 1 - Constelação de Andrômeda")
        print ("| 2 - Constelação de Antlia")
        print ("| 3 - Constelação de Apus")
        print ("| 4 - Constelação de Aquarius")
        print ("| 5 - Constelação de Aquila")

        op = int(input("Insira o valor da constelação que deseja vizualizar: "))

        if op == 1:
            t.reset()
            t.bgcolor("black")
            t.color("white")
            const_1()

        elif op == 2:
            t.reset()
            t.bgcolor("black")
            t.color("white")
            const_2()

        elif op == 3:
            t.reset()
            t.bgcolor("black")
            t.color("white")
            const_3()

        elif op == 4:
            t.reset()
            t.bgcolor("black")
            t.color("white")
            const_4()

        elif op == 5:
            t.reset()
            t.bgcolor("black")
            t.color("white")
            const_5()

        elif op == 6:
            break

        else:
            print("Inseriu opção inválida, tente novamente!")
            continue

menu()

Hello there.

Do you have a question?

If so, please post the full information about what you need help with. Learning to describe problems is an important part of learning how to code. Also, the more information you give us, the more likely we are to be able to help.

Sorry I’m new at this the problem is when I put an option on the if’s it works but when I put a second option it shows me that problem. Btw the option 4 and 5 aren’t working either, like the pencolor doesn’t change probably because of the clones

I don’t understand what you mean.

So, I start the program and it asks me for a option. When I put it, it does the constellation that I made, but when I try to put a second option after I put the first option It shows me that error

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.