Printing python tkinter output

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-06-01T16:29:44Z Indexed on 2010/06/01 17:03 UTC
Read the original article Hit count: 172

Filed under:
|
|

I am trying to print the contents of a python tkinter canvas. I have tried using the postscript method of canvas to create a postscript file, but I get a blank page. I know this is because I have embedded widgets, and these do not get rendered by the postscript method.

Before I rewrite my program to create a more printer-friendly layout, can someone suggest a way to approach this problem? All of the programming books I have ever read approach the problem of sending output to a printer with a bit of hand-waving, something along the lines of: "It's a difficult problem that depends on interacting with the operating system." I also have a hard time finding resources about this because of all the pages related to printing to the screen.

I am using Python 2.6, on Ubuntu 9.04.

© Stack Overflow or respective owner

Related posts about python

Related posts about printing