To create a new Message widget as the child
of a root window or frame named parent:

w = tk.Message(parent, option, ...)

This constructor returns the new Message
widget. Options may be any of these:

Table 26. Message widget options

aspect

Use this option to specify the ratio of width to
height as a percentage. For example, aspect=100 would give you a text message
fit into a square; with aspect=200,
the text area would be twice as wide as high. The
default value is 150, that is, the text will be fit
into a box 50% wider than it is high.

Use this option to specify how multiple lines of
text are aligned. Use justify=tk.LEFT
to get a straight left margin; justify=tk.CENTER to center each line; and
justify=tk.RIGHT to get a straight
right margin.

padx

Use this option to add extra space inside the
widget to the left and right of the text. The
value is in pixels.

pady

Use this option to add extra space inside the
widget above and below the text. The value is in
pixels.

relief

This option specifies the appearance of the border
around the outside of the widget; see Section 5.6, “Relief styles”. The default style is tk.FLAT.

The value of this option is the text to be
displayed inside the widget.

textvariable

If you would like to be able to change the message
under program control, associate this option with a
StringVar instance (see Section 52, “Control variables: the values behind the widgets”). The value of this
variable is the text to be displayed. If you
specify both text and textvariable options, the text option is ignored.

width

Use this option to specify the width of the text
area in the widget, in pixels. The default width
depends on the displayed text and the value of the
aspect option.