List Info

Thread: Re: Multipage Postscript printing from canvas




Re: Multipage Postscript printing from canvas
country flaguser name
Germany
2007-02-20 08:05:15
Hello Vasilis,

the options to the postscript function are quite
extensively
explained in the tk canvas man-page (man n canvas).
(Beware! I never used this 
What I have seen from a cursory glance:
 Use pagewidth or pageheight options for scaling to
A4/Letter size
 Use x, y, height and width options to select a part of the
canvas

Remember also: there is no size information in canvas
coordinates.
  Scaling of the output is completely up to you.

(A4 is 20.99 x 29.70 (says gimp); so for the upper left part

 of the canvas you might use:
 c.postscript(...
pageheight="29.70c",x="0",y="0"
;,height="297",width="209.9")

As I have said, I never used this, this is just what the
man-page
says (just tried the line above).
It says also, that it generates encapsulated postscript,
so (with postscript hacking know-how) you could embed all
generated
parts into a single postscript template file which just
references the parts.
You might even do this in python, if you don't use the
file option.

Greetings,
Matthias Kievernagel
(mkiever/at/web/dot/de)
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Error in TopLevel Window
country flaguser name
United States
2007-02-20 10:41:38
Hi,

I am having a problem with one application that is proving
very difficult
to pinpoint. The application downloads its own upgrades from
a server and
notifies the user that this has been so with a Toplevel
window, suggesting
to restart the application whenever possible to make changes
effective.
Everything seems to be normal on Linux, but on Windows 9x,
the very first
time after a reboot that this upgrade takes place, it is
done
successfully, but the toplevel window opens blank with a
large number as
its title (like "1127987922") -which has nothing
to do with the title I am
using for it- and the application freezes. After killing and
restarting
it, any further upgrades are uneventful, including the
toplevel window
message. The problem occurs irrespective of what other
applications are
running. I have received no reports of this problem on
WinXP.

Do you know of any conditions under which something like
could 
happen? Have you seen this behaviour before? 

Any guesses or speculations will be greatly appreciated...

Gerardo Juarez



_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )