]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Jul 2026 03:37:16 +0000 (05:37 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 03:37:16 +0000 (03:37 +0000)
commitaccfc342e792d461eecf6bcbdd242f126822f325
tree9b0b0f301b01cb8d1bdc48533a2f388f0dbe9ad3
parent29cb75dc109cfb4a57061ea8525cbc379101ae25
[3.15] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717) (GH-153737)

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: Serhiy Storchaka <storchaka@gmail.com>
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