python / python/cpython

IDLE - Update mousewheel event handling

未关闭
#154,511 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

stdlib topic-IDLE type-refactor
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

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
  • gh-154512
  • gh-156974
  • gh-157021
  • gh-157022
  • gh-157023

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 idlelib/sidebar.py、idlelib/tree.py、idlelib/util.py 以及 idlelib/idle_test/test_sidebar.py、idlelib/idle_test/test_tree.py 和 idlelib/idle_test/test_util.py 中的测试开始。先查看已链接的 PR,因为工作已经分配到这些 PR 中。完成意味着指定的定义和测试已被迁移,并且剩余的调整已得到覆盖,同时不会破坏相关的 IDLE 测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
desktop
Issue 类型
重构
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。