Beside the lines, I would like to show '1x', '2x', '3x', '4x' and '5x', respectively.
I could not upload the image due to insufficient reputation.
Thanks.
def draw_lines():
import Tkinter
L1 = [0, 0, 0, 1]
L2 = [1, 0, 1, 2]
L3 = [2, 0, 2, 3]
L4 = [3, 0, 3, 4]
L5 = [4, 0, 4, 5]
top = Tkinter.Tk()
canvas = Tkinter.Canvas(top, width=500, height=500)
offset = 1
scale = 50
for L in [L1, L2, L3, L4, L5]:
canvas.create_line(*[scale*(x + offset) for x in L])
canvas.pack()
top.mainloop()