Skip to content

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

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

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

Conversation

@miss-islington

@miss-islingtonmiss-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 19693af into python:3.13Sep 6, 2026
43 checks passed
@miss-islington
miss-islington deleted the backport-57594aa-3.13 branch September 6, 2026 10:44
Sign up for freeto 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

@miss-islington@serhiy-storchaka