python / python/cpython

IDLE - Update mousewheel event handling

未關閉
#154,511 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

stdlib topic-IDLE type-refactor
主要語言
Python
星號
77.2k
分支
36k
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 摘要。