]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 6 May 2024 17:12:51 +0000 (20:12 +0300)
committerGitHub <noreply@github.com>
Mon, 6 May 2024 17:12:51 +0000 (20:12 +0300)
commit1ff626ebda465931ff3e4922e8e87d586eb6244c
tree9398cac06485d2da705e16985f1c4d64f3de42ef
parent417dd3aca7bb910691d34e54fee108d7bbc627d3
gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291)

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.
Lib/tkinter/__init__.py
Modules/_tkinter.c
Modules/clinic/_tkinter.c.h