line = canvas.create_line(0, 10, width, 10, width=4)
canvas.create_text(10, 20, font=('Purisa', 10), text='... ' + str(width) +
    ' Pixels', anchor='nw')
Calculating the pixel size of a string with Python