from tkinter import * canvas = Canvas(width=300, height=300, bg='white') canvas.pack(expand=YES, fill=BOTH) canvas.create_line(0, 300, 150, 150, width=10, fill='green') mainloop()