使用graphics.py时如何保存图像文件

我正在使用John Zelle的graphics.py程序(基于tkinter)创建自定义图形。文档在这里:http://anh.cs.luc.edu/handsonPythonTutorial/graphics.html

我找不到保存图形窗口的方法。我希望在win.savefig('filename.png')包中使用类似matplotlib.pyplot的东西,但找不到该东西存在的东西。

是否可以将窗口另存为图像文件(首选图形格式)?

[P.S。我正在寻找一种程序/自动解决方案,因此屏幕截图不是合适的答案]

mingjiu1988 回答:使用graphics.py时如何保存图像文件

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3112776.html

大家都在问