Sets this's maximum width in characters, without taking into account any prefix or suffix (which will automatically be handled).
If you want to take a prefix or suffix into account direclty, then use set_width_chars
this |
a Entry widget |
max_width |
maximum width, or -1 |