Debian Codegraph @

Doc/library/tk.rst

raw
1 .. _tkinter:
2
3 *********************************
4 Graphical user interfaces with Tk
5 *********************************
6
7 .. index::
8 single: GUI
9 single: Graphical User Interface
10 single: Tkinter
11 single: Tk
12
13 Tk/Tcl has long been an integral part of Python. It provides a robust and
14 platform independent windowing toolkit, that is available to Python programmers
15 using the :mod:`tkinter` package, and its extension, the :mod:`tkinter.ttk` module.
16
17 The :mod:`tkinter` package is a thin object-oriented layer on top of Tcl/Tk. To
18 use :mod:`tkinter`, you don't need to write Tcl code, but you will need to
19 consult the Tk documentation, and occasionally the Tcl documentation.
20 :mod:`tkinter` is a set of wrappers that implement the Tk widgets as Python
21 classes.
22
23 :mod:`tkinter`'s chief virtues are that it is fast, and that it usually comes
24 bundled with Python. Although its standard documentation is weak, good
25 material is available, which includes: references, tutorials, a book and
26 others. :mod:`tkinter` is also famous for having an outdated look and feel,
27 which has been vastly improved in Tk 8.5. Nevertheless, there are many other
28 GUI libraries that you could be interested in. The Python wiki lists several
29 alternative `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 turtle.rst
43
44 .. Other sections I have in mind are
45 Tkinter internals
46 Freezing Tkinter applications