tkinter is a python library to create GUIs (graphical user interfaces). This can be
used to pull applications out of the command line and into a program with a "face". The entirety of the
code on this site is for python3 (python2, python who?)
tkinter is installed with python
and can be imported with
This site is intended to provide examples of how to build an application with this library with special emphasis on thorough visual examples.
Visit this section to find out what widgets
tkinter offers to build with. The list is
quite extensive from simple Labels and Buttons to more advanced canvases that can be drawn on.
This section details how to layout elements in a
tkinter application using one of the
built-in geometry managers. This is fundamental in getting the right look and feel for your
This section details how to capture mouse, window, and keyboard events inside your application.
Some examples of interfaces we've created with tkinter:
This application is a simple photo viewer. It uses the grid geometry manager and only a handful of
Listbox , and
A Peer-to-Peer Radio Service
This application allows broadcasting and listening to audio via TCP ports. This uses the grid
geometry manager and a few widgets:
NB: We can use
tkinter to create all sorts of programs, but note that it isn't intended
for game development with many images / animations / etc. It can do fine with simple board-based games