Overview
tkinter
is a python library to create GUIs or graphical user interfaces. This can be used to pull applications out of the command line and into a program with a buttons, boxes, and bitmaps. This site provides a reference of how to build applcations with this library, emphasizing visual examples.
Concepts
There are 3 concepts central to tkinter:
- Widgets, the “what?”. Widgets refer to the different types of elements that can be added to our application.
- Geometry Management, the “where?”. Geometry management is the process of laying out widgets in our window.
- Event Handling, the “how?” and “when?”. Event handling allows us to capture mouse & keyboard events inside our application and determine how these are handled.
Two important questions that tkinter cannot answer for us are “who?” and “why?”. We must make sure to answer that ourselves.
Examples
Below are some examples of applications built with tkinter, highlighting the versatility and usefulness of the library. This site is not affiliated with any of the listed projects and does not make claims about their licensing, availability, or quality.