Skip to content

[3.15] gh-151678: Add tests for the remaining tkinter widgets (GH-151687)#151725

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-93b9e76-3.15
Jun 19, 2026
Merged

[3.15] gh-151678: Add tests for the remaining tkinter widgets (GH-151687)#151725
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-93b9e76-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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 93b9e76)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

…H-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.
(cherry picked from commit 93b9e76)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 19, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 19, 2026 10:26
@serhiy-storchaka serhiy-storchaka merged commit 13529d4 into python:3.15 Jun 19, 2026
96 of 98 checks passed
@miss-islington miss-islington deleted the backport-93b9e76-3.15 branch June 19, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants