]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151678: Add tests for the remaining tkinter widgets (GH-151687)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jun 2026 10:23:38 +0000 (13:23 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 10:23:38 +0000 (13:23 +0300)
commit93b9e7666f4337e3cacfed6993568e4bec575e9b
tree863393206b9a8cb1cec9d56420cefeddf66f78e2
parentb4cfb992ed3a28b8cd626f70e3550ac8dbec1758
gh-151678: Add tests for the remaining tkinter widgets (GH-151687)

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.

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