我有一个在Canvas
小部件上绘制turtle的项目。我已经知道如何保存绘图,但如何打开它们。这是我想说的一个例子:
from tkinter import *
root = Tk()
... #Just creating widgets
def openDrawing:
...#What goes in here ?
fileMenu.add_command(label = "Open Drawing",command=openDrawing,accelerator="Ctrl+O")
root.mainloop()
Tags:
包含图像数据的PostScript文件格式由^{} 库supported。因此,您可以像这样打开turtle
.ps
文件:相关问题 更多 >
编程相关推荐