from Tkinter import * v0 = Tk() v1 = Toplevel(v0) v2 = Toplevel(v0) v3 = Toplevel(v0) v4 = Toplevel(v0) v5 = Toplevel(v0) v0.title("Figuras") v1.title("Circulo") v2.title("Rectangulo") v3.title("Lineas") v4.title('Queshito :3') v5.title('Arco') v1.protocol("WM_DELETE_WINDOW", "onexit") v2.protocol("WM_DELETE_WINDOW", "onexit") v3.protocol("WM_DELETE_WINDOW", "onexit") v4.protocol("WM_DELETE_WINDOW", "onexit") v5.protocol("WM_DELETE_WINDOW", "onexit") def mostrar(ventana): ventana.deiconify() def ocultar(ventana): ventana.withdraw() def ejecutar(f): v0.after(200, f) v0.config(bg="black") v0.geometry("288x300") def circulo(ventana): v1.deiconify() circulo = Canvas(v1, width=210, height=210, bg="white") circulo.pack() cuadro = circulo.create_oval(10, 10, 200, 200, width=3, fill...
Comentarios
Publicar un comentario