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

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

Open
miss-islington wants to merge 2 commits into
python:3.15from
miss-islington:backport-57594aa-3.15
Open

[3.15] gh-154511: Consolidate IDLE's mouse wheel handling in util (GH-156974)#157021
miss-islington wants to merge 2 commits into
python:3.15from
miss-islington:backport-57594aa-3.15

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants