from tkinter import *
self.anyfontname = font.Font(family='Arial', size=20, weight='bold')
text = 'hi'
print(self.anyfontname.measure(text))
Tkinter Label: How do I know that the text is too long for it?