Skip to content

https://github.com/python/cpython/pull/7287#discussion_r192546254 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions Doc/library/tkinter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,30 @@ Tk
Tk is a `Tcl package <http://wiki.tcl.tk/37432>`_ implemented in C
that adds custom commands to create and manipulate GUI widgets. Each
:class:`Tk` object embeds its own Tcl interpreter instance with Tk loaded into
it. Tk's widgets are very customizable, though at the cost of a dated appearance.
it.
Tk uses Tcl's event queue to generate and process GUI events.

Ttk
Themed Tk (Ttk) is a newer family of Tk widgets that provide a much better
appearance on different platforms than many of the classic Tk widgets.
Ttk is distributed as part of Tk, starting with Tk version 8.5. Python
bindings are provided in a separate module, :mod:`tkinter.ttk`.
Since version 8.5, Tk also implements the
`Themed Tk (Ttk) <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_intro.htm>`_
family of widgets. They feature much better, consistent and native look
across different platforms.
Ttk widgets are recommended for use in new code, with their regular
counterparts mostly reserved for legacy code and special cases.

Tix
`Tix`<https://core.tcl.tk/jenglish/gutter/packages/tix.html>_ is an older
third-party Tcl package, an add-on for Tk that adds several new widgets.
Python bindings are found in the :mod:`tkinter.tix` module.
It's deprecated in favor of Ttk.


Tkinter Modules
^^^^^^^^^^^^^^^

Most applications will directly use the features provided by :mod:`tkinter`.
Unless compatibility with very old versions of Tcl/Tk is required, Ttk widgets
found in :mod:`tkinter.ttk` should also be favoured over their classic Tk
counterparts.
:mod:`tkinter` has the core functionality and the bindings for regular Tk
widgets.

:mod:`tkinter.ttk` has bindings for Themed Tk (Ttk) widgets, and :mod:`tkinter.tix`
for ones from the Tix add-on.

The :mod:`_tkinter` module provides low-level access to Tcl interpreters in Python,
using the C interface to the Tcl library. It should rarely be used directly by
Expand Down