]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 15 Jul 2026 05:39:23 +0000 (08:39 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 05:39:23 +0000 (05:39 +0000)
commit0f1e563d1bc7f0be3699cd59a984537b4eafd9e8
tree78abcd5ebfd52a567952b4cba5fa2db32fcde60e
parent2ec11e017eca87997c746b388815ea7d2715541d
[3.13] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717) (GH-153743)

Compute probe coordinates from each widget's own realized geometry
instead of hardcoding pixels such as (5, 5) or width - 5, which land on
a different element, or miss it entirely, at a high display scaling.

(cherry picked from commit 87411d0742f070b1424c08b41cf3af49d377b215)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py
Lib/test/test_ttk/test_widgets.py