Is this a valid way of using the Tinker function create_line()? coords = [X0, Y0, X1, Y1, ..., Xn, Yn] canvas.create_line(coords) # Draw the line where Xi, Yi are pixel values.