Skip to main content
Loading page…
Python Mastery
Chapter 48
Lesson 1 of 4
Windows & Widgets
Contents
Notes
Tutor
Concept
Why Tkinter? The stdlib GUI
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
47 min
9 activities
0 of 9 done
In this lesson
1
Why Tkinter? The stdlib GUI
2
The Widget Tree
3
Geometry Managers: pack, grid, and place
4
Widget Configuration Options
5
Use ttk widgets for a modern look
6
Geometry manager rules
7
Match widget to purpose
8
Order of a minimal Tkinter program
9
Senior Lab: Build, Run, and Review Evidence
Objectives
Learner can create a Tk root window and enter the mainloop
Learner can place Label, Button, Entry, and Frame widgets in a window
Learner can use pack, grid, and place geometry managers and pick the right one
Learner can describe the widget-tree model and why every widget needs a parent
Further reading
tkinter - Python interface to Tcl/Tk
Chapter 48 · Desktop GUIs with Tkinter (and PyQt)
Windows & Widgets
Events, Callbacks & State
Build a Desktop App
Beyond Tkinter
Previous: Build a Data Dashboard
Next: Events, Callbacks & State