A label is a GUI widget for displaying a line of text or an image. Unlike a text box, it presents information rather than collecting typed input. section 37.3
Create and place a label
colorlabel = tkinter.Label(window, height="10", width="10") colorlabel.pack() The first line creates the label inside window and stores it in colorlabel. The second line places it in the window. You can also give it text, such as instructions for the user. section 37.3
Labels can show changing information while a program runs. In a countdown timer, one label gives instructions and another displays each number, then changes to “DONE!”. section 37.4
A label can be used to:
- Explain what the user should enter. section 37.4
- Show results or status messages. section 37.5
- Display changing values by configuring its text. section 37.4


