def pol(): v1 = Toplevel(v0) v1.deiconify() poligono = Canvas(v1, width=210, height=210, bg="blue") poligono.pack(expand=YES, fill=BOTH) poligono.create_polygon(50, 50, 150, 50, 50, 110, 110, 25, 140, 100, fill="lightblue", outline="brown", width=6) b4 = Button(v1, text="Cerrar ", command=lambda: v1.destroy()) b4.pack()
b9 = Button(v0, text="Poligono", command=lambda: pol()) b9.grid(row=1, column=8)
No hay comentarios:
Publicar un comentario