Line color : Line « 2D « Python






Line color

Line color

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()
           
       








Related examples in the same category

1.Draw a lineDraw a line
2.Line with patternLine with pattern
3.Draw linesDraw lines
4.Line widthLine width