My menu has many errors and I would like to know what I'm doing wrong. One of the problems is that it does not let me leave the program if I press 4, another is that if I choose an option it shows me the figure I want but then I do not know how to go back to the main menu if the user wants to continue asking ... change I get this error
I think here is the error, I do not know:
#programa
opcion=Opciones()
while True:
#-------------------------------------------------------------------
#Si el usuario quiere pintar un cuadrado se le da multiples opciones
if opcion == 1:
print
Cuadrado(6,6)
eleccion=Menu_Colores()
if eleccion == 1:
Pintar_CuadradoG1(13,13)
input()
elif eleccion == 2:
Pintar_CuadradoG2(13,13)
input()
elif eleccion == 3:
Pintar_CuadradoG3(13,13)
input()
elif eleccion == 4:
Pintar_CuadradoP1(4,4)
input()
elif eleccion == 5:
Pintar_CuadradoP2(4,4)
input()
elif eleccion == 6:
Pintar_CuadradoP3(4,4)
input()
#-------------------------------------------------------------------
#Si el usuario quiere pintar un triangulo se le da multiples opciones
elif opcion == 2:
Triangulo()
seleccion = Menu_Colores()
if seleccion == 1:
Pintar_TriG1()
input()
elif seleccion == 2:
Pintar_TriG2()
input()
elif seleccion == 3:
Pintar_TriG3()
input()
elif seleccion == 4:
Pintar_TriP1()
input()
elif seleccion == 5:
Pintar_TriP2()
input()
elif seleccion == 6:
Pintar_TriP3()
input()
#---------------------------------------------------------------------
#Si el usuario quiere pintar un rombo se le da multiples opciones
elif opcion == 3:
Rombo(7)
decision = Menu_Colores()
if decision == 1:
Pintar_RomboG1(13)
input()
elif decision == 2:
Pintar_RomboG2(13)
input()
elif decision == 3:
Pintar_RomboG3(13)
input()
elif decision == 4:
Pintar_RomboP1(7)
input()
elif decision == 5:
Pintar_RomboP2(7)
input()
elif decision == 6:
Pintar_RomboP3(7)
input()
#---------------------------------------------------------------------
#Si el usuario ingresa una opcion no valida
else:
print"Debe ingresar una opcion valida"
#---------------------------------------------------------------------
opcion=Opciones()
print 'Adios, nos vemos :3'