On 4/3/2013 12:24 PM, Joe Hill wrote:
On 4/3/2013 12:24 PM, Joe Hill wrote:
> I attempted to print about 10 pages of documentation from the help files
> using IDLE. On all the pages the side of each page was missing about 1/4
> inch of text.
You neglected to say what you actually did to have a problem. I tried
the following with the font set to the default Courier.
>>> help(tuple)
<a page and a half of help text>
<print to Canon inkjet or HP Laserjet 5>
Everything printed, with longest lines just fitting within the margins.
> Am I missing a setting? Is this a known problem? Will it do the same
> with lines of code?
Printing depends on font, font size, OS printer driver, and printer. I
suspect Idle just sends print command to tk text widget. Its 'print
dialog' is as primitive as possible: the only choice is to print to the
default printer or not; no printer choice, no page setup. Tk, in turn,
should just put the text in a temporary file and turn it over to the OS
printer driver.
> Using W7, 64 bit. PY 3.3.
>
> It worked just fine when I pasted the text in Word 2010.
I am sure it is has more knowledge about the vagaries of printing. You
might try a single page (with max length lines) after Word prints to see
if it left the printer in a better state.
--
http://mail.python.org/mailman/listinfo/python-list