-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-122392: Fix the wrong size of the Path Browser vertical spacing for IDLE (#122392) #124975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See additional new comment on issue.
Misc/NEWS.d/next/IDLE/2024-10-04-15-34-34.gh-issue-122392.V8K3w2.rst
Outdated
Show resolved
Hide resolved
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I have made the requested changes; please review again. |
Thanks for making the requested changes! @terryjreedy: please review the changes made to this pull request. |
@serhiy-storchaka, @ned-deily, @ronaldoussoren: I am pretty sure that this should work on linux/macOS, but would any of you like to test before I merge? Open IDLE, select File => pathbrowser, open /Lib, the underscores and descenders on |
Hello, @terryjreedy Regarding your second comment from the above review, I think there may be something wrong with some. Tonight, after I looked through the source code in the past, I found that the reason for the value of So I think my previous code might be correct. Of course, there may be some problems that I have not taken into account, and if so, please forgive me and point them out. |
Good digging. I could think that if 17 has not resulted in a report, maybe it was OK. But people mostly do not report glitches. Better safe than sorry. |
I intend to merge this after 3.13.0 is released, which is scheduled to be within a day. |
Thanks @Xiaokang2022 for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…22392) (pythonGH-124975) Increase currently inadequate vertical spacing for the IDLE browsers (path, module, and stack) on high-resolution monitors. --------- (cherry picked from commit c5df1cb) Co-authored-by: Zhikang Yan <2951256653@qq.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…22392) (pythonGH-124975) Increase currently inadequate vertical spacing for the IDLE browsers (path, module, and stack) on high-resolution monitors. --------- (cherry picked from commit c5df1cb) Co-authored-by: Zhikang Yan <2951256653@qq.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
GH-125061 is a backport of this pull request to the 3.13 branch. |
GH-125062 is a backport of this pull request to the 3.12 branch. |
GH-124975) (#125062) gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975) Increase currently inadequate vertical spacing for the IDLE browsers (path, module, and stack) on high-resolution monitors. --------- (cherry picked from commit c5df1cb) Co-authored-by: Zhikang Yan <2951256653@qq.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
GH-124975) (#125061) gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975) Increase currently inadequate vertical spacing for the IDLE browsers (path, module, and stack) on high-resolution monitors. --------- (cherry picked from commit c5df1cb) Co-authored-by: Zhikang Yan <2951256653@qq.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
The Path Browser vertical interval size was originally set to
20
, but this caused display issues (such as overlapping) on some devices. Actually, we should calculate the size, and giving a fixed value will not solve the problem in all cases.But no matter what the value is, the elements in the first row will not use it, so we can get the size of this value through the elements in the first row after the first row is drawn, and assign the value to the corresponding variable for the subsequent elements to use.
After testing, this solution worked very well on my device (Windows10 22H2 1920x1080).