Can I print from Python?

Andrei Kulakov ak at silmarill.org
Sun Apr 7 10:47:56 EDT 2002


In article <20020407103654.19127.00002640 at mb-fm.news.cs.com>, Jim
Williams wrote:
> Hi all...I'm new to Python and really enjoying it so far, but I am
> somewhat
> perplexed that as far as I have seen it has no facilities for printing to a
> printer?  Surely this is possible. Someone please enlighten me...I have done a
> good bit of research and searching and can find no reference to how to do this.
> 
It's very platform-dependant; on unix, if your lp command is set up
correctly, you can save to a text file and then do os.system("lp
file.txt"). I don't know about windows.

> 


-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org



More information about the Python-list mailing list