GUI Label control
Creates a tkinter label that shows text in the window. Use .config(text=...) to change what it shows, such as displaying a result. Options like font and fg set style.
Understanding GUI Label control in VCE Software Development U3O1
What it does: The font option sets the typeface and size, and fg sets the foreground (text) colour. The number is converted with str() and passed to .config(text=...) so the label displays the output. A label must also be placed in the window with .pack() or .grid() before it appears. Variables in an f-string must be wrapped in curly braces, like {total}. Without braces, the word total is shown literally.
Common mistakes: The option that changes a label's words is text, not txt. It should be lbl.config(text="Bye"). The class name is case-sensitive. It must be tk.Label with a capital L, not tk.label.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 125–141) and word search (Modules 114–141).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
tk.Label(root, text='...')Fill in the Blanks
Spot the Error
Student with a class code? Join your class →