mail at timgolden.me.uk
Mon Sep 29 13:36:43 CEST 2008
Antoon Pardon wrote:
> On 2008-09-26, Mike Driscoll <kyosohma at gmail.com> wrote:
>> On Sep 19, 9:01 am, Antoon Pardon <apar... at forel.vub.ac.be> wrote:
>>> On 2008-09-16, Graham Jenkins <gra... at vpac.org> wrote:
>>>> 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")
>>>> But it seems to me that there should be a clean solution like:
>>>> import cups
>>>> stat =
>>> What about systems that don't use cups for printing?
>>> Antoon Pardon
>> For Windows, there's a few different ways to print. Tim Golden has a
>> list on his website:
> I have a linux system that doesn't use cups for printing.
> So his "clean" solution won't work on my box. Unless
> of course his cups.Connection.printFile is just a wrapper
> around os.popen("lp -d MyPrinter", "wb") or something
Well I certainly don't pretend to offer any solutions on
my "Win32 How do I?" pages except for how to do things
on Win32 ;) .
More information about the Python-list