Check out example codes for "tkinter create_line". It will help you in understanding the concepts better.

Code Example 1

canvas.create_line(15, 25, 200, 25)

Learn ReactJs, React Native from akashmittal.com