Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.16.0a2 documentation »
- The Python standard library »
- Graphical user interfaces with Tk
- |
- Theme |
Graphical user interfaces with Tk¶
Tk/Tcl has long been an integral part of Python. It provides a robust and
platform independent windowing toolkit, that is available to Python programmers
using the tkinter package, and its extension, the tkinter.ttk module.
The tkinter package is a thin object-oriented layer on top of Tcl/Tk. To
use tkinter, you don’t need to write Tcl code, but you will need to
consult the Tk documentation, and occasionally the Tcl documentation.
tkinter is a set of wrappers that implement the Tk widgets as Python
classes.
tkinter’s chief virtues are that it is fast, and that it usually comes
bundled with Python. Although its standard documentation is weak, good
material is available, which includes: references, tutorials, a book and
others. tkinter is also famous for having an outdated look and feel,
which has been vastly improved in Tk 8.5. Nevertheless, there are many other
GUI libraries that you could be interested in. The Python wiki lists several
alternative GUI frameworks and tools.
tkinter— Python interface to Tcl/Tktkinter.colorchooser— Color choosing dialogtkinter.font— Tkinter font wrappertkinter.fontchooser— Font selection dialog- Tkinter dialogs
tkinter.messagebox— Tkinter message promptstkinter.scrolledtext— Scrolled text widgettkinter.systray— System tray icon and notificationstkinter.dnd— Drag and drop supporttkinter.ttk— Tk themed widgets- IDLE — Python editor and shell
turtle— Turtle graphics
Previous topic
locale — Internationalization services
Next topic
tkinter — Python interface to Tcl/Tk
This page
«Navigation
- index
- modules |
- next |
- previous |
- Python »
- 3.16.0a2 documentation »
- The Python standard library »
- Graphical user interfaces with Tk
- |
- Theme |
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Nov 29, 2026 (04:54 UTC). Found a bug?
Created using Sphinx 9.1.1.