Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 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` module, and its extension, the :mod:`Tix` module. |
| 16 | |
| 17 | The :mod:`Tkinter` module 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. In addition, the internal module :mod:`_tkinter` provides a threadsafe |
| 22 | mechanism which allows Python and Tcl to interact. |
| 23 | |
| 24 | :mod:`Tkinter`'s chief virtues are that it is fast, and that it usually comes |
Georg Brandl | ae98f50 | 2008-05-11 14:56:04 +0000 | [diff] [blame^] | 25 | bundled with Python. Although its standard documentation is weak, good |
| 26 | material is available, which includes: references, tutorials, a book and |
| 27 | others. :mod:`Tkinter` is also famous for having an outdated look and feel, |
| 28 | which has been vastly improved in Tk 8.5. Nevertheless, there are many other |
| 29 | GUI libraries that you could be interested in. For more information about |
| 30 | alternatives, see the :ref:`other-gui-packages` section. |
Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 31 | |
| 32 | .. toctree:: |
| 33 | |
| 34 | tkinter.rst |
| 35 | tix.rst |
| 36 | scrolledtext.rst |
| 37 | turtle.rst |
| 38 | idle.rst |
| 39 | othergui.rst |
| 40 | |
Georg Brandl | b19be57 | 2007-12-29 10:57:00 +0000 | [diff] [blame] | 41 | .. Other sections I have in mind are |
| 42 | Tkinter internals |
| 43 | Freezing Tkinter applications |
Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame] | 44 | |
| 45 | |