print some text
Gabriel Ibanez
mobile at ibinsa.com
Fri Apr 25 14:44:22 EDT 2008
Hi !
Other idea (old style school):
def printing():
f=open("lpt1", "w")
f.write("\nSomething to print\f")
f.close()
Cheers..
- Ibanez -
----- Original Message -----
From: <castironpi at gmail.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Wednesday, April 23, 2008 10:27 PM
Subject: Re: print some text
On Apr 23, 2:05 pm, barronmo <barro... at gmail.com> wrote:
> I'm a beginner searching for an easy way to print the contents of a
> text control. So far I've come up with the following(difficulties):
>
> 1) using wxPython
> -convert to HTML and then print (I don't know anything about
> HTML)
> -use wx.Printout (Seems complicated; may be beyond my abilities)
>
> 2) create a text file and then print it out (can create but can only
> print with the win32api.ShellExecute method so this solution doesn't
> help me on my Linus laptop)
>
> 3) use ReportLab to create .pdf and then print that out (again, can
> create but can't print in Linux)
>
> Thanks for any help.
>
> Mike
Write out an HTML file, write back if you need a quick one, then print
that with a browser.
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list