Print to Printer Tkinter Text

2009-11-23 Thread J Wolfe
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

Re: Print to printer

2005-11-07 Thread Magnus Lycka
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

Re: Print to printer

2005-11-05 Thread avnit
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

Re: Print to printer

2005-11-05 Thread avnit
Wow. That worked perfectly. Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: Print to printer

2005-11-01 Thread Magnus Lycka
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

Re: Print to printer

2005-10-31 Thread avnit
I just want to print text. I'll try macpython. Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Print to printer

2005-10-31 Thread avnit
I just want to print text. I'll try macpython. Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Print to printer

2005-10-28 Thread SPE - Stani's Python Editor
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

Print to printer

2005-10-28 Thread avnit
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