from Tkinter import * root = Tk() root.title('figura') rectangulo = Canvas(width=210, height=210, bg='black') rectangulo.pack(expand=YES, fill=BOTH) rectangulo.create_rectangle(10, 20, 200, 200, width=5, fill='red') root.mainloop() from Tkinter import * root = Tk() root.title('figura') rectangulo = Canvas(width=210, height=210, bg='back') rectangulo.pack(expand=YES, fill=BOTH) rectangulo.create_rectangle(10, 20, 200, 200, width=5, fill='red') root.mainloop() from Tkinter import * root = Tk() root.title('figura') linea = Canvas(width=210, height=210, bg='black') linea.pack(expand=YES, fill=BOTH) linea.create_line(0, 200, 200, 0, width=10, fill='green') root.mainloop()