]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 6 May 2024 19:26:08 +0000 (22:26 +0300)
committerGitHub <noreply@github.com>
Mon, 6 May 2024 19:26:08 +0000 (19:26 +0000)
commitbee1c322c0a426b86ba5ed02a71b6c0652e5fac3
tree5dfdcb70c226f46315626b722a68978dbe5b8b0f
parentf6c2b04d029e3ce547fb687fc4b6d30755d989a6
[3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291) (GH-118662)

This is an experimental feature, for internal use.

Setting tkinter._debug = True before creating the root window enables
printing every executed Tcl command (or a Tcl command equivalent to the
used Tcl C API).

This will help to convert a Tkinter example into Tcl script to check
whether the issue is caused by Tkinter or exists in the underlying Tcl/Tk
library.
(cherry picked from commit 1ff626ebda465931ff3e4922e8e87d586eb6244c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/tkinter/__init__.py
Modules/_tkinter.c
Modules/clinic/_tkinter.c.h