Skip to content

A save function in the Turtle module #123614

Closed

Description

@yngvem

Feature or enhancement

Proposal:

I've used turtle.py quite a bit in my teaching, and a common question is how learners can save their files. Now, the turtle library only supports saving the drawings as postscript files by calling the cryptic command turtle.getscreen().getcanvas().postscript(file=filename). Whenever a learner asks “How can I print what I made?”, I’ll have to show them that extremely scary command with method chaining -- not the best snippet to show someone who’s still struggling with functions…

If we instead had a turtle.save("filename.ps"), then I could tell the learners to use that function and an online postscript to pdf converter, which should be understandable to most learners

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/improving-the-turtle-library/61840

Linked PRs

Activity

  1. yngvem commented on Sep 2, 2024

    @yngvem
    ContributorAuthor

    @MarieRoald and I will submit a pull request on this shortly

  2. added a commit that references this issue on Sep 2, 2024
  3. changed the title [-]# A save function in the Turtle module[/-] [+]A save function in the Turtle module[/+] on Sep 2, 2024
  4. added a commit that references this issue on Sep 2, 2024
  5. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Sep 2, 2024
  6. added 4 commits that reference this issue on Sep 2, 2024
  7. rruuaanng commented on Sep 4, 2024

    @rruuaanng
  8. hugovk commented on Sep 4, 2024

    @hugovk
  9. rruuaanng commented on Sep 4, 2024

    @rruuaanng
  10. added 3 commits that reference this issue on Sep 4, 2024
  11. added a commit that references this issue on Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions