HELP Printing with wxPython

Mike Meyer mwm at mired.org
Thu May 12 03:48:01 EDT 2005


jeff elkins <jeffelkins at earthlink.net> writes:

>> Instead, as was suggested earlier, use the "lpr" command and send it
>> the text/data on standard input. Any reasonably managed Unix system
>> should be able to handle a fair range of graphics formats, though
>> postscript is preferred.
> I've been using:
>
> p=os.popen('lp','w')        
> p.write("some text')
> p.Close()

Yeah. System V called it lp. BSD called it lpr. Most modern systems
have both, as they are just a front end to the line printer (when was
the last time you saw an honest-to-gods line printer?) daemon.

    <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list