Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-57594aa-3.13
Open

[3.13] gh-154511: Consolidate IDLE's mouse wheel handling in util (GH-156974)#157023
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-57594aa-3.13

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants