Creating a label widget
The Tk label widget is used to display information that does not allow direct user input. This information can be any alphanumeric information from simple labels for other controls to large instructions to a user.
The keywords are described in the Tk main pages, as follows:
Standard keyword |
Interpretation |
---|---|
|
Specifies the background color to be used when drawing the element. The active background is the color used when the mouse is over the element and when pressing the mouse button will initiate an action. |
|
Specifies the foreground color to be used when drawing the element. The active foreground is the color used when the mouse is over the element and when pressing the mouse button will initiate an action. |
|
Specifies how the information within the widget is displayed. Acceptable values are:
|