Draw lines : Line : 2D PYTHON examples


PYTHON examples » 2D » Line »

 

Draw lines


Draw lines


from Tkinter import *

canvas = Canvas(width=300, height=300, bg='white')  
canvas.pack(expand=YES, fill=BOTH)                  

canvas.create_line(100100200200)             
canvas.create_line(100200200300)             
for i in range(1202)
    canvas.create_line(0, i, 50, i)

mainloop()
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo 2D
» Line