Skip to content

gh-71592: Add ability to trace Tcl commands executed by Tkinter#118291

Merged
serhiy-storchaka merged 5 commits into
python:mainfrom
serhiy-storchaka:tkinter-trace-tcl-2
May 6, 2024
Merged

gh-71592: Add ability to trace Tcl commands executed by Tkinter#118291
serhiy-storchaka merged 5 commits into
python:mainfrom
serhiy-storchaka:tkinter-trace-tcl-2

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Apr 25, 2024

Copy link
Copy Markdown
Member

It 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).

It 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.

It 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).

It 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.
@serhiy-storchaka serhiy-storchaka merged commit 1ff626e into python:main May 6, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the tkinter-trace-tcl-2 branch May 6, 2024 17:12
@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 1ff626ebda465931ff3e4922e8e87d586eb6244c 3.12

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request May 6, 2024
…Tkinter (pythonGH-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.
(cherry picked from commit 1ff626e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app

bedevere-app Bot commented May 6, 2024

Copy link
Copy Markdown

GH-118662 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label May 6, 2024
serhiy-storchaka added a commit that referenced this pull request May 6, 2024
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 1ff626e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
…pythonGH-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant