Programa que hace un corazón usando el método canvas.
from Tkinter import *
canvas = Canvas(width=700, height=650, bg='black')
canvas.pack(expand=YES, fill=BOTH)
canvas.create_polygon(250,125,
350,125,
425,175,
500,125,
600,125,
650,175,
650,375,
425,600,
200,375,
200,175,
fill='pink',
dash=(2, 3))
mainloop()
No hay comentarios.:
Publicar un comentario