1import tkinter as tk
2
3window = tk.Tk()
4
5canvas = tk.Canvas(window)
6canvas.pack()
7
8#Tkinter has an arrow option in the create_line method. tk.Last specifies the position at which
9#the arrow is placed, in this case the last coordinate set of the line, hence "LAST".
10canvas.create_line(0, 0, 200, 100, arrow=tk.LAST)
11
12window.mainloop()