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()
1. | Line with pattern | ||
2. | Draw lines | ||
3. | Line width | ||
4. | Line color |