]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 15 Jul 2026 03:06:24 +0000 (06:06 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 03:06:24 +0000 (06:06 +0300)
commit87411d0742f070b1424c08b41cf3af49d377b215
treee80bde40d1d14e85d97e4d69af21a4f625f34b35
parentc5530cc836595aed61cbd0504c92e4d8fb996ed0
gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717)

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.

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