Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105589 > unrolled thread
| Started by | Bryon Fawcett <jandbfawcett@gmail.com> |
|---|---|
| First post | 2016-03-24 13:39 +1300 |
| Last post | 2016-03-24 12:55 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Connect to Default Printer Bryon Fawcett <jandbfawcett@gmail.com> - 2016-03-24 13:39 +1300
Re: Connect to Default Printer Grant Edwards <invalid@invalid.invalid> - 2016-03-24 12:55 +0000
| From | Bryon Fawcett <jandbfawcett@gmail.com> |
|---|---|
| Date | 2016-03-24 13:39 +1300 |
| Subject | Connect to Default Printer |
| Message-ID | <mailman.80.1458801781.2244.python-list@python.org> |
Good afternoon. Could you please advise me how to connect the python software to my default printer. Regards, Bryon Fawcett.
[toc] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2016-03-24 12:55 +0000 |
| Message-ID | <nd0o4t$663$2@reader1.panix.com> |
| In reply to | #105589 |
On 2016-03-24, Bryon Fawcett <jandbfawcett@gmail.com> wrote:
> Could you please advise me how to connect the python software to my default
> printer.
import os
os.popen("lpr","w").write("Hi there, this just got printed!\r\n")
--
Grant
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web