On 2008-09-16, Graham Jenkins <graham@vpac.or gwrote:
What about systems that don't use cups for printing?
--
Antoon Pardon
>
I'm trying to print a file from within a Python program.
>
The quick-and-dirty solution is to use something like:
>
fd = os.popen("lp -d MyPrinter", "wb")
fd.write(MyFile Contents)
>
But it seems to me that there should be a clean solution like:
>
import cups
stat =
cups.Connection .printFile("MyF ile","MyPrinter ","MyTitle","My Options")
I'm trying to print a file from within a Python program.
>
The quick-and-dirty solution is to use something like:
>
fd = os.popen("lp -d MyPrinter", "wb")
fd.write(MyFile Contents)
>
But it seems to me that there should be a clean solution like:
>
import cups
stat =
cups.Connection .printFile("MyF ile","MyPrinter ","MyTitle","My Options")
--
Antoon Pardon
Comment