TkLabel( WidgetName, [Options]...)

Create and manipulate label widgets

Arguments:

WidgetName - a standard path-like name used to name the widget.

Options - one or many descriptors for the options that are available for this widget.

Options:

height - Specifies a desired height for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to TkGetPixels); for text it is in lines of text. If this option isn't specified, the label's desired height is computed from the size of the image or bitmap or text being displayed in it.

width - Specifies a desired width for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to TkGetPixels); for text it is in characters. If this option isn't specified, the label's desired width is computed from the size of the image or bitmap or text being displayed in it.

In addition, the following Standard Options are available: anchor, background, bitmap, borderwidth, cursor, font, foreground, highlightbackground, highlightcolor, highlightthickness, image, justify, padx, pady, relief, takefocus, text, textvariable, underline, wraplength

DESCRIPTION

The TkLabel() call creates a new window (given by the WidgetName argument) and makes it into a label widget. Additional options, described above, may be specified in the function call or in the option database to configure aspects of the label such as its colors, font, text, and initial relief. The label function returns its WidgetName argument. At the time this function is invoked, there must not exist a window named WidgetName, but WidgetName's parent must exist.

A label is a widget that displays a textual string, bitmap or image. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines or if wrapping occurs because of the wrapLength option) and one of the characters may optionally be underlined using the underline option. The label can be manipulated in a few simple ways, such as changing its relief or text, using the TkConfig function call.