Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-95371: Add support for other image formats(e.g. PNG) to the turtle…#95378
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bedevere-bot commentedJul 28, 2022
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
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.
Some little spacing nits.
Also, any particular reason to list them in order PGM, PPM, GIF, and PNG?
I'd either put them in some sort of order of "popularity/ease of use" (e.g. "PNG, GIF, PGM, and PPM") or alphabetically ("GIF,PGM, PNG, and PPM").
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2022-07-28-12-32-59.gh-issue-95371.F24IFC.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
|
Merging
|
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.
Please could you add someversionchanged orversionadded to document the changes/additions at the end of each function?
The next version will be 3.12.
Docs:https://devguide.python.org/documentation/markup/#paragraph-level-markup
bedevere-bot commentedFeb 6, 2023
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 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@adorilson@hugovk I'll continue this work. Sorry for being too late. I updated the document by adding the versionchanged information. Can you review the change? |
Great news,@relent95 . Now, the recommendation is that you use |
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.
Thanks, nearly there :)
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2022-07-28-12-32-59.gh-issue-95371.F24IFC.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@bedevere-bot I have made the requested changes; please review again. |
Thanks for making the requested changes! @hugovk: please review the changes made to this pull request. |
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-bot I have made the requested changes; please review again. |
Thanks for making the requested changes! @hugovk: please review the changes made to this pull request. |
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.
Thank you!
e1baa77 intopython:mainUh oh!
There was an error while loading.Please reload this page.
…turtle… (python#95378)Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Uh oh!
There was an error while loading.Please reload this page.
Shape.__init__()The existing buggy and dead code calling an instance method
TurtleScreen._image()as a class method was removed.(It has never been reached viaturtle.register_shape())TurtleScreen.register_shape()The existing redundant code checking the filename extension was removed because the backendtkinter.PhotoImage does that.
A new pattern for arguments, such as
register_shape("turtle", "turtle.gif")was added to be consistent with cases for polygon shapes.(It will be useful when the filename is quite long, as in case of using a full path.)TurtleScreen.bgpic()This already supports other image formats. So only the documentation was changed.