Skip to content

Use tk_scaling() instead of a raw Tcl call in IDLE and tkinter tests#152788

Merged
terryjreedy merged 2 commits into
python:mainfrom
terryjreedy:fixscale
Jul 1, 2026
Merged

Use tk_scaling() instead of a raw Tcl call in IDLE and tkinter tests#152788
terryjreedy merged 2 commits into
python:mainfrom
terryjreedy:fixscale

Conversation

@terryjreedy

Copy link
Copy Markdown
Member

Replace tk.call('tk', 'scaling') with tk_scaling(), which returns a float, in idlelib.util and test_tkinter.widget_tests.

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

returns a float, in idlelib.util and test_tkinter.widget_tests.

Co-authored-by: serhiy-storchaka
@terryjreedy

Copy link
Copy Markdown
Member Author

I found the error. Will fix.

@terryjreedy terryjreedy merged commit 0f59b2a into python:main Jul 1, 2026
48 checks passed
@terryjreedy terryjreedy deleted the fixscale branch July 1, 2026 15:18
terryjreedy added a commit that referenced this pull request Jul 4, 2026
util (line 27): root.tk_scaling method is new in 3.16.
This should have been included in PR-#152788.
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