Options

The Message widget support the following options:

Table 33-1. Message Options

Option

Type

Description

anchor

constant

aspect

value

background (bg)

color

cursor

cursor

The cursor to show when the mouse pointer is placed over the message widget. Default is a system specific arrow cursor.

font

font

foreground (fg)

color

highlightbackground, highlightcolor

color

Controls how to draw the focus highlight border. When the widget has focus, the border is drawn in the highlightcolor color. Otherwise, it is drawn in the highlightbackground color. The defaults are system specific.

highlightthickness

distance

Controls the width of the focus highlight border. Default is 0 (no border).

justify

constant

padx, pady

distance

relief

constant

Border decoration. The default is FLAT. Other possible values are SUNKEN, RAISED, GROOVE, and RIDGE.

Note that to show the border, you need to change the borderwidth from it's default value of 0.

borderwidth (bd)

distance

Border width. The default is 0 (no border).

takefocus

flag

Indicates that the user can use the Tab key to move to this widget. Default is an empty string, which means that the message accepts focus only if it has any keyboard bindings (default is off, in other words).

text

string

textvariable

variable

width

distance