blob: bb852d2d887890d0f5df182c33c92034c0b4e437 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001.. _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` module, and its extension, the :mod:`Tix` module.
16
17The :mod:`Tkinter` module 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. In addition, the internal module :mod:`_tkinter` provides a threadsafe
22mechanism which allows Python and Tcl to interact.
23
24:mod:`Tkinter`'s chief virtues are that it is fast, and that it usually comes
25bundled with Python. Although it has been used to create some very good
26applications, including IDLE, it has weak documentation and an outdated look and
27feel. For more modern, better documented, and much more extensive GUI
28libraries, see the :ref:`other-gui-packages` section.
29
30.. toctree::
31
32 tkinter.rst
33 tix.rst
34 scrolledtext.rst
35 turtle.rst
36 idle.rst
37 othergui.rst
38
39.. % Other sections I have in mind are
40.. % Tkinter internals
41.. % Freezing Tkinter applications
42
43