Skip to content

IDLE - Update mousewheel event handling #154511

Description

@terryjreedy

Followup to gh-153741 which made IDLE aware of x11 wheel event change in 8.7 and 9.0. Move definition of x11_buttons from test_sidebar to util. Move def wheel_event from tree to util and move its test from test_tree to test_util. (I expect tree.py to eventially be replaced by ttk.treeview.) Make various other adjustments

There are unneeded bindings of buttons 4 and 5 in sidebar. We might be able to handle the needed binding with wheel_event with a second argument. I will leave this for a second PR.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-IDLEtype-refactorCode refactoring (with no changes in behavior)

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions