[Tutor] Tk graphs output print to file
Abel Daniel
abli@freemail.hu
Thu Dec 5 05:40:02 2002
Andrea Valle (marta_andrea@libero.it) wrote:
> Hi pythoners,
> I was asking myself: is it possible to print to file (i.e. bitmap/jpg) Tk
> screen output (i.e.canvas)?
>
> thanks!
Canvas has a .postscript method:
In [8]: print c.postscript.__doc__
Print the contents of the canvas to a postscript
file. Valid options: colormap, colormode, file, fontmap,
height, pageanchor, pageheight, pagewidth, pagex, pagey,
rotate, witdh, x, y.
abli
abli@freemail.hu