def save_postscript(self):
filepath = tkFileDialog.asksaveasfilename(filetypes=[("ps","*.ps")],parent=self)
if not filepath == "":
try:
# Lowers the stack level of the points in order to hide them in the .ps image.
self.canvas_plot.tag_lower("type:point")
self.canvas_plot.postscript(file=filepath, colormode='color')
self.canvas_plot.set_canvas_stack()
except:
pass
评论列表
文章目录