IDLE patch to use py2pdf

Robin Becker robin at jessikat.demon.co.uk
Fri Apr 21 09:43:20 EDT 2000


A minimal patch to allow the latest CVS idle to use Dinu Gherman's
py2pdf for printing is available at ftp://ftp.reportlab.com/idle.pat;
this patch hasn't been thoroughly tested yet, but I would like some
input on all the problems. 

After applying the patch using

cd idle
patch -p1 <idle.pat

you will need to extract ftp://ftp.reportlab.com/py2pdf.tgz (or .zip)
in the tools directory. This will create py2pdf in tools; edit the file
py2pdf/idle_print.py to reflect your local system.

The patch adds a file.print menu item which just copies the window to a
temporary file and then uses idle_print.py to convert to pdf and
executes acrobat reader on the result. It works quite well for me on my
win32 and suse systems, but will no doubt need some hacking to get the
print styling and or other things to suit.
-- 
Robin Becker



More information about the Python-list mailing list