8000 Tkinter: emit deprecation warning for trace_variable() etc · Issue #120220 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Tkinter: emit deprecation warning for trace_variable() etc #120220

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
serhiy-storchaka opened this issue Jun 7, 2024 · 2 comments
Closed

Tkinter: emit deprecation warning for trace_variable() etc #120220

serhiy-storchaka opened this issue Jun 7, 2024 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir topic-tkinter type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member
serhiy-storchaka commented Jun 7, 2024

The Variable methods trace_variable(), trace_vdelete() and trace_vinfo() wrap deprecated Tcl commands which were deleted in Tcl 9.0. Modern replacements trace_add(), trace_remove(), and trace_info() were added in Python 3.6 (#66313). They wrap Tcl commands supported since Tcl 8.4 or older, i.e. in all supported Tcl versions.

It is a time to add runtime warnings for the old methods.

Linked PRs

@serhiy-storchaka serhiy-storchaka added type-feature A feature request or enhancement topic-tkinter 3.14 bugs and security fixes labels Jun 7, 2024
@serhiy-storchaka serhiy-storchaka self-assigned this Jun 7, 2024
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Jun 7, 2024
…inter

They do not work with Tcl 9.0.
Use new methods added in Python 3.6.
@terryjreedy
Copy link
Member

I added the new methods to the opening statement for the benefit of users who arrive here.

@terryjreedy
Copy link
Member

If it is possible to run tcl/tk 9.0 with 3.13 or even 3.14, this should be added to 3.13. It is a new feature, but a negative one.

@terryjreedy terryjreedy reopened this Jun 24, 2024
rsre added a commit to rsre/K40-Whisperer-macOS that referenced this issue Nov 25, 2024
@picnixz picnixz added stdlib Python modules in the Lib dir and removed 3.14 bugs and security fixes labels Dec 15, 2024
serhiy-storchaka added a commit that referenced this issue Apr 29, 2025
…H-120223)

They do not work with Tcl 9.0.
Use new methods added in Python 3.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-tkinter type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants
0