Re: cups.Connection.printFile

2008-09-29 Thread Tim Golden
irty solution is to use something like: fd = os.popen("lp -d MyPrinter", "wb") fd.write(MyFileContents) But it seems to me that there should be a clean solution like: import cups stat = cups.Connection.printFile("MyFile","MyPrinter","MyTitle",&quo

Re: cups.Connection.printFile

2008-09-29 Thread Antoon Pardon
hon program. >> >> > The quick-and-dirty solution is to use something like: >> >> > fd = os.popen("lp -d MyPrinter", "wb") >> > fd.write(MyFileContents) >> >> > But it seems to me that there should be a clean solution like: >

Re: cups.Connection.printFile

2008-09-26 Thread Mike Driscoll
: > > > fd = os.popen("lp -d MyPrinter", "wb") > > fd.write(MyFileContents) > > > But it seems to me that there should be a clean solution like: > > > import cups > > stat = > > cups.Connection.printFile("MyFile","MyPrinter&quo

Re: cups.Connection.printFile

2008-09-26 Thread Antoon Pardon
ents) > > But it seems to me that there should be a clean solution like: > > import cups > stat = > cups.Connection.printFile("MyFile","MyPrinter","MyTitle","MyOptions") What about systems that don't use cups for printing? -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list