tkinter
The standard library module that lets Python programs create windows and graphics using Tk.
In more detail
Idle is built on tkinter, and so is the graphics.py module the course uses. If import tkinter fails with ModuleNotFoundError, Tk support was not installed: tick tcl/tk on Windows, brew install python-tk on a Mac, or install python3-tk on Debian and Ubuntu.
Example
python3 -m tkinterRelated terms
- Tcl/Tk — An older scripting language, Tcl, and its window toolkit, Tk, which Python uses to draw windows, buttons and Idle itself.
- IDLE — The simple editor and Python shell that come with Python itself.
- graphics.py — A small teaching library by John Zelle, built on tkinter, for drawing shapes, text and entry boxes in a window.
Taught in
- Installing Python On A Mac — Hands-on Python: Complete Video Course & Book
- Installing Python On Linux — Hands-on Python: Complete Video Course & Book
- First Run, And Fixing A Broken Install — Hands-on Python: Complete Video Course & Book