Draw a line : Line « 2D « Python






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(355, 53, bitmap='questhead')
canvas.create_line(105,10,200,105)


canvas.pack()
root.mainloop()

           
       








Related examples in the same category

1.Line with patternLine with pattern
2.Draw linesDraw lines
3.Line widthLine width
4.Line colorLine color