Skip to content

gh-75552: Remove deprecated tkinter.tix module #104902

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

Merged
merged 2 commits into from
May 27, 2023
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@
# match any of the following regexes (using re.match).
coverage_ignore_modules = [
r'[T|t][k|K]',
r'Tix',
]

coverage_ignore_functions = [
Expand Down
11 changes: 2 additions & 9 deletions Doc/faq/gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,8 @@ One solution is to ship the application with the Tcl and Tk libraries, and point
to them at run-time using the :envvar:`TCL_LIBRARY` and :envvar:`TK_LIBRARY`
environment variables.

To get truly stand-alone applications, the Tcl scripts that form the library
have to be integrated into the application as well. One tool supporting that is
SAM (stand-alone modules), which is part of the Tix distribution
(https://tix.sourceforge.net/).

Build Tix with SAM enabled, perform the appropriate call to
:c:func:`Tclsam_init`, etc. inside Python's
:file:`Modules/tkappinit.c`, and link with libtclsam and libtksam (you
might include the Tix libraries as well).
Various third-party freeze libraries such as py2exe and cx_Freeze have
handling for Tkinter applications built-in.


Can I have Tk events handled while waiting for I/O?
Expand Down
4 changes: 1 addition & 3 deletions Doc/library/tk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Graphical User Interfaces with Tk

Tk/Tcl has long been an integral part of Python. It provides a robust and
platform independent windowing toolkit, that is available to Python programmers
using the :mod:`tkinter` package, and its extension, the :mod:`tkinter.tix` and
the :mod:`tkinter.ttk` modules.
using the :mod:`tkinter` package, and its extension, the :mod:`tkinter.ttk` module.

The :mod:`tkinter` package is a thin object-oriented layer on top of Tcl/Tk. To
use :mod:`tkinter`, you don't need to write Tcl code, but you will need to
Expand All @@ -39,7 +38,6 @@ alternative `GUI frameworks and tools <https://wiki.python.org/moin/GuiProgrammi
tkinter.scrolledtext.rst
tkinter.dnd.rst
tkinter.ttk.rst
tkinter.tix.rst
idle.rst

.. Other sections I have in mind are
Expand Down
4 changes: 0 additions & 4 deletions Doc/library/tkinter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@ Additional modules:
(experimental) Drag-and-drop support for :mod:`tkinter`. This will
become deprecated when it is replaced with the Tk DND.

:mod:`tkinter.tix`
(deprecated) An older third-party Tcl/Tk package that adds several new
widgets. Better alternatives for most can be found in :mod:`tkinter.ttk`.

:mod:`turtle`
Turtle graphics in a Tk window.

Expand Down
Loading