]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) (GH-151726)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 10:50:09 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 10:50:09 +0000 (10:50 +0000)
commit971fd7089610799de8f28f78d722803877309974
tree3f259146d0b5eae3b11bb711404f0578ad8fa5ef
parent42ac982b413653ab6f33085d5ba01b5e2a5c391f
[3.14] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) (GH-151726)

Cover previously-untested methods of several widgets:

* Button, Checkbutton and Radiobutton: invoke, flash and toggle;
* Entry: delete, icursor and the select_* aliases;
* Spinbox: invoke, identify and scan;
* Scale and Scrollbar: identify, and Scrollbar fraction and delta;
* PanedWindow: panes, remove/forget, sash and proxy positioning,
  identify, and adding panes with configuration options.

Also test that invoke does nothing for a disabled button and the
errors raised for invalid indices, coordinates, option names and values.
(cherry picked from commit 93b9e7666f4337e3cacfed6993568e4bec575e9b)

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