By default, the contents of a text item will be displayed in a single line. The width option allows us to define a maximum line width, which wraps lines longer than that:
# ...
options = { "font": "courier", "fill": "blue",
"activefill": "red", "width": 70 }
self.text_id = self.canvas.create_text((w/2, h/2), **options)
Now, when we write Hello, world! on the entry, the part of the text that exceeds the line width will be displayed in a new line: