Hi,
Is there a way to print the format of a Tkinter text box to a color
printer with its tags, e.g. a blue text at font size 18 and bold will
like it displays?
Thanks,
Jonathan
--
http://mail.python.org/mailman/listinfo/python-list
avnit wrote:
> Do you know if there's a way to print a file? I'm trying to print an
> HTML file, so your solution is good, but doesn't really work for me.
> Just reading the HTML file and the printing the content obviously
> wouldn't work. I also tried:
>
> >>> printer.write(file('path/to/file.ext
Do you know if there's a way to print a file? I'm trying to print an
HTML file, so your solution is good, but doesn't really work for me.
Just reading the HTML file and the printing the content obviously
wouldn't work. I also tried:
>>> printer.write(file('path/to/file.ext'))
but apparently this
Wow. That worked perfectly. Thanks a lot.
--
http://mail.python.org/mailman/listinfo/python-list
avnit wrote:
> I can't seem to figure out how to print with my printer using python.
> I'm using Mac OSX 10.4. I was thinking maybe something with
> applescript. Does anyone know?
Mac OSX is unix, right?
This ought to work then:
>>> import os
>>> printer = os.popen('lpr', 'w')
>>> printer.writ
I just want to print text. I'll try macpython. Thanks for the help.
--
http://mail.python.org/mailman/listinfo/python-list
I just want to print text. I'll try macpython. Thanks for the help.
--
http://mail.python.org/mailman/listinfo/python-list
You should be more specific. What do you want to print? Text, images,
...
If you want a cross platform solution you could use wxPython:
http://wiki.wxwidgets.org/docbrowse.cgi/wxwin_printingoverview.html#printingoverview
For text you could use wxHtmlEasyPrinting:
http://wiki.wxpython.org/index.cgi
I can't seem to figure out how to print with my printer using python.
I'm using Mac OSX 10.4. I was thinking maybe something with
applescript. Does anyone know?
--
http://mail.python.org/mailman/listinfo/python-list