Label break line if string is too big Label break line if string is too big tkinter tkinter

Label break line if string is too big


You could put in the linebreaks yourself, using textwrap.fill():

import textwraplabeltext = textwrap.fill(labeltext, width=30)


The option you are looking for is wraplength, which sets when a label’s text should be wrapped into multiple lines. However, this parameter is given in screen units, while width is text units if the widget displays text (so you can't use 30 directly).