[Tutor] problem with canvas.postscript()

Michael Lange klappnase at freenet.de
Tue Jan 23 10:56:26 CET 2007


On Mon, 22 Jan 2007 20:14:31 +0000
"Asrarahmed Kadri" <ajkadri at googlemail.com> wrote:

> Hi folks,
> 
> I am trying to save a tkinter canvas using canvas.postscript() method...
> 
> The thing works fine when the canvas size is small; but it gets cut (from
> the top and left side) when the size increases..
> Here is the code:
> 
> c.postscript(file=filename,height = canvas_height,width =
> canvas_width,colormode='color',pagex=200,pagey=250)
> 
> The image also gets printed very low on the page in the postscript file..??
> 
> Can anybody help me to fix the problem..?
> 
> Thanks in anticipation.
> 

Have you tried to omit the pagex and pagey options, if you call postscript
without any options (except filename) the whole canvas should be centered on
the page.

Michael


More information about the Tutor mailing list