• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.. _tkinter:
2
3*********************************
4Graphical User Interfaces with Tk
5*********************************
6
7.. index::
8   single: GUI
9   single: Graphical User Interface
10   single: Tkinter
11   single: Tk
12
13Tk/Tcl has long been an integral part of Python.  It provides a robust and
14platform independent windowing toolkit, that is available to Python programmers
15using the :mod:`tkinter` package, and its extension, the :mod:`tkinter.ttk` module.
16
17The :mod:`tkinter` package is a thin object-oriented layer on top of Tcl/Tk. To
18use :mod:`tkinter`, you don't need to write Tcl code, but you will need to
19consult the Tk documentation, and occasionally the Tcl documentation.
20:mod:`tkinter` is a set of wrappers that implement the Tk widgets as Python
21classes.
22
23:mod:`tkinter`'s chief virtues are that it is fast, and that it usually comes
24bundled with Python. Although its standard documentation is weak, good
25material is available, which includes: references, tutorials, a book and
26others. :mod:`tkinter` is also famous for having an outdated look and feel,
27which has been vastly improved in Tk 8.5. Nevertheless, there are many other
28GUI libraries that you could be interested in. The Python wiki lists several
29alternative `GUI frameworks and tools <https://wiki.python.org/moin/GuiProgramming>`_.
30
31.. toctree::
32
33   tkinter.rst
34   tkinter.colorchooser.rst
35   tkinter.font.rst
36   dialog.rst
37   tkinter.messagebox.rst
38   tkinter.scrolledtext.rst
39   tkinter.dnd.rst
40   tkinter.ttk.rst
41   idle.rst
42
43.. Other sections I have in mind are
44   Tkinter internals
45   Freezing Tkinter applications
46