Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105631 > unrolled thread

Re: Connect to Default Printer

Started byTerry Reedy <tjreedy@udel.edu>
First post2016-03-24 12:01 -0400
Last post2016-03-24 12:01 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Connect to Default Printer Terry Reedy <tjreedy@udel.edu> - 2016-03-24 12:01 -0400

#105631 — Re: Connect to Default Printer

FromTerry Reedy <tjreedy@udel.edu>
Date2016-03-24 12:01 -0400
SubjectRe: Connect to Default Printer
Message-ID<mailman.101.1458835321.2244.python-list@python.org>
On 3/23/2016 8:39 PM, Bryon Fawcett wrote:

> Could you please advise me how to connect the python software to my default
> printer.

IDLE prints to default printer with function print_window in 
idlelib/IOBinding.py.  The two GetOption calls return these two strings 
(from config-main.def).

For print-command-posix, 'lpr %s'
For print-command-win, 'start /min notepad /p %s'

You should be able to adapt to your needs.  Perhaps you do not need the 
messageboxes.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web