HELP Printing with wxPython

Mike Meyer mwm at mired.org
Thu May 12 00:56:44 EDT 2005


James Carroll <mrmaple at gmail.com> writes:
> If you are doing this just for yourself, and you know you have a
> printer that will really print just the plain text when you send it
> plain text (like a dot matrix printer from the early 90s) then you can
> probably open the printer device  and send it text.  Under windows you
> can try opening LPT1  or on unix it's probably /dev/lpr or something
> like that.

Under Unix, you shouldn't be able to open the line printer, whether
it's /dev/lpr or /dev/lpt0 or whater. You shouldn't have
permission.

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.

        <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