Connect to Default Printer

Grant Edwards invalid at invalid.invalid
Thu Mar 24 08:55:57 EDT 2016


On 2016-03-24, Bryon Fawcett <jandbfawcett at 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



More information about the Python-list mailing list