[3.14] gh-154511: Consolidate IDLE's mouse wheel handling in util (GH-156974) by miss-islington · Pull Request #157022 · python/cpython · GitHub
Skip to content

[3.14] gh-154511: Consolidate IDLE's mouse wheel handling in util (GH-156974) - #157022

Merged
serhiy-storchaka merged 2 commits into
python:3.14from
miss-islington:backport-57594aa-3.14
Sep 6, 2026
Merged

[3.14] gh-154511: Consolidate IDLE's mouse wheel handling in util (GH-156974)#157022
serhiy-storchaka merged 2 commits into
python:3.14from
miss-islington:backport-57594aa-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Move wheel_event there from idlelib.tree and add x11_buttons(widget) and
bind_wheel(widget, func), used by the editor, the tree and test_sidebar.
wheel_event now reads the direction from the event, not the platform.

Move its test from test_tree, and test the fix_ functions of util too.
(cherry picked from commit 57594aa)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 5 noreply@anthropic.com

…honGH-156974)

Move wheel_event there from idlelib.tree and add x11_buttons(widget) and
bind_wheel(widget, func), used by the editor, the tree and test_sidebar.
wheel_event now reads the direction from the event, not the platform.

Move its test from test_tree, and test the fix_ functions of util too.
(cherry picked from commit 57594aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
…ling

Misc.tk_scaling is new in 3.16, and fix_scaling itself calls "tk
scaling" here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka merged commit a9152fb into python:3.14 Sep 6, 2026
48 of 49 checks passed
@miss-islington
miss-islington deleted the backport-57594aa-3.14 branch September 6, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants