GUI Entry control and .get()
Creates a text box in the window. Call entry.get() to read what the user typed. It is always a string, so convert it with int() or float() to use it as a number.
Understanding GUI Entry control and .get() in VCE Software Development U3O1
What it does: delete(0, tk.END) removes the text from index 0 through the end of the Entry, which empties the box. get() gives a string, so int() wraps it to produce a whole number that can be used in calculations. tk.Entry(root) creates a text box where the user can type. tk.Label only displays text and cannot be typed into. The Entry control has a .get() method. There is no .read() method on an Entry. get() always returns a string, even when the user types digits. You must convert it yourself. Wrap entry.get() inside int(). The get() method does not take a data type as an argument.
Common mistakes: get is a method, so it needs brackets to run. Without them, name just stores the method itself instead of the text. It should be name = entry.get(). An Entry has no text() method. The text is read with entry.get(). It should be text = entry.get().
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
entry = tk.Entry(root)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →