martes, 26 de septiembre de 2017

Figura Mario Bros 8Bits. Tkinter (Canvas)

from tkinter import *

VentanaP = Tk()
VentanaP.title("Poligono")
poly = Canvas(VentanaP, width=210, heigh=210, bg='White')
poly.pack()
poly.create_polygon(50,20,100,20,100,30,130,30,130,40,110,40,110,50,130,50,130,60,140,60,140,70,130,70,130,80,120,80,120,90,100,90,100,100,130,100,130,110,140,110,140,150,120,150,120,160,130,160,130,170,140,170,140,180,100,180,100,160,90,160,90,150,70,150,70,160,60,160,60,180,20,180,20,170,30,170,30,160,40,160,40,150,20,150,20,110,30,110,30,100,40,100,40,90,50,90,50,80,30,80,30,50,40,50,40,30,50,30, fill="red", outline='white')
VentanaP.config(bg="blue")
VentanaP.geometry("210x210")
VentanaP.mainloop()


No hay comentarios:

Publicar un comentario