Draw a line : Line : 2D PYTHON examples


PYTHON examples » 2D » Line »

 

Draw a line


Draw a line



from Tkinter import *

root = Tk()
#root.option_readfile('optionDB')
root.title('Canvas')
canvas = Canvas(root, width =400, height=400)
#canvas.create_bitmap(35553, bitmap='questhead')
canvas.create_line(105,10,200,105)


canvas.pack()
root.mainloop()

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo 2D
» Line