]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) (GH-151727)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 19 Jun 2026 10:54:03 +0000 (13:54 +0300)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 10:54:03 +0000 (10:54 +0000)
commita8252d557c1315bb278dcc3f40664ad2b66caee1
treeb39f7fe29db3d20c295dc587a915f1f6f861364e
parente514b4a279b9cd301292e7454e7e79cf2cba9e38
[3.13] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) (GH-151727)

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: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py