I have created a turtle program that draws many things in many sizes based on the user input. However, I also want to include a "save" button that opens up a file dialog and allows the user to save the current canvas as a .jpeg or other file type compatible with Macintosh. What would be the most efficient and direct way to implement a file dialog and save method in the canvas that saves the canvas as a file (that can also be saved on top of afterwards if save is pressed again in the same window) on a directory the user chooses? Any help regarding this is much appreciated! :)
Note: I have tried researching around for ways to do this in Python 3.x, but what I am only getting is ways to do this for Python 2.x.