views:

146

answers:

1

How would i print contents of a Python Tkinter.Canvas control?

I've read that it is possible to print to a postscript printer from this control but examples are hard to come by.

So, any ideas how what is needed to print the contents (including images)? If you've got a cross-platform method all the better!

A: 

AFAIK it can only be done using the postscript method from the Canvas. This generates a postscript file with the canvas contents.

Check the documentation for details about this method.

Carlos Tasada
From the Manual: `postscript`: Generates a Postscript rendering of the canvas contents. **Images and embedded widgets are not included.**
Gary Willoughby