Skip to content
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

bpo-46591: Make About IDLE doc link label clickable #30251

Merged
merged 8 commits into from Feb 2, 2022

Conversation

wesinator
Copy link
Contributor

@wesinator wesinator commented Dec 25, 2021

This PR makes the IDLE doc link on the Help -> About dialog open the web browser
If you're going to have a link in about page, might as well have it open to the browser.

image

https://stackoverflow.com/questions/23482748/how-to-create-a-hyperlink-with-a-label-in-tkinter

Merry Christmas and Happy Holidays,

https://bugs.python.org/issue46591

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jan 31, 2022
@terryjreedy terryjreedy changed the title IDLE about dialog - add open action to docs link bpo-46591: Make About IDLE label with doc link clickable Jan 31, 2022
@terryjreedy terryjreedy changed the title bpo-46591: Make About IDLE label with doc link clickable bpo-46591: Make About IDLE doc link label clickable Jan 31, 2022
Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a blurb (using 'blurb' installed on your machine or the blurb-it link you should see at the bottom of the main PR page). The following will be enough.
"Make the IDLE doc URL on the About IDLE dialog clickable."

Approved with the 2 requested changes.

Lib/idlelib/help_about.py Outdated Show resolved Hide resolved
@bedevere-bot
Copy link

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. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@terryjreedy terryjreedy added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes type-feature A feature request or enhancement and removed stale Stale PR or inactive for long period of time. labels Jan 31, 2022
wesinator and others added 2 commits January 31, 2022 10:35
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@wesinator
Copy link
Contributor Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@terryjreedy: please review the changes made to this pull request.

@terryjreedy
Copy link
Member

Your original lambda was correct in having an e[vent] parameter. It could not have worked since widget options are not attributes. This should have been live tested.

I tried adding a unittest, but testing an event binding is very hard. I tried adding a separate button, both to make it obvious that one could open the url and because testing button functions is relatively easy. But the button was too ugly. I settled for adding url testing to the human acceptance testing instruction. (This appears when running the idlelib file rather than the unittest file.) I think this sufficient since there is nothing tricky about the new line and anyone touching it should do a live test.

@terryjreedy terryjreedy merged commit 53c7808 into python:main Feb 2, 2022
@miss-islington
Copy link
Contributor

Thanks @wesinator for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @wesinator and @terryjreedy, I had trouble checking out the 3.10 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 53c78080573b3bae4c4e782b9f47dce48aac9688 3.10

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 2, 2022
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 53c7808)

Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
@bedevere-bot
Copy link

GH-31067 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Feb 2, 2022
@terryjreedy terryjreedy added needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes labels Feb 2, 2022
@miss-islington
Copy link
Contributor

Thanks @wesinator for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-31068 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Feb 2, 2022
@terryjreedy terryjreedy added the needs backport to 3.10 only security fixes label Feb 2, 2022
@miss-islington
Copy link
Contributor

Thanks @wesinator for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 2, 2022
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 53c7808)

Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
@terryjreedy terryjreedy removed the needs backport to 3.10 only security fixes label Feb 2, 2022
miss-islington added a commit that referenced this pull request Feb 2, 2022
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 53c7808)

Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Feb 2, 2022
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 53c7808)

Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
@wesinator wesinator deleted the patch-1 branch February 2, 2022 03:42
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 53c7808)

Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants