[pygtk] how to print from pygtk?
daniel
daniel at littlesaigon.homedns.org
Wed Jun 23 15:59:11 WST 2004
to print
1) import os
2) linux->printer=os.popen("lpr -r","w")
or
for window printer=os.popen("lpt1:","w")
3) printer.write(" some text")
4) printer.close()
daniel
Rubens Ramos wrote:
>--- Ivan Brkanac <ivan.brkanac at email.htnet.hr> wrote:
>
>
>>Xavier Ordoquy wrote:
>>
>>
>>
>>>On Fri, 2004-06-18 at 20:57, Christian Robottom Reis wrote:
>>>
>>>
>>>
>>>
>>>>On Fri, Jun 18, 2004 at 03:11:28PM +0200, Ivan Brkanac wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>I would like to do some printing from pygtk (on windows)
>>>>>how can it be done I haw data in text buffer and it needs to go to
>>>>>printer, as I searched
>>>>>
>>>>>
>>>>>
>>>>>
>>>>If you want to use GNOME's printing facilities, one alternative is
>>>>
>>>>
>>using
>>
>>
>>>>the gnome-print bindings that Gustavo started a while ago. I'm not
>>>>
>>>>
>>sure
>>
>>
>>>>in what state they are in, but I suspect they do work.
>>>>
>>>>
>>>>
>>>>
>>>I'm not sure gnome print works on windows.
>>>
>>>Regards,
>>>Xavier Ordoquy.
>>>
>>>
>>>
>>>
>>Yes I indeed need print on Win32 also printing what I need is really
>>simple, I imagined tat there would exist some sort of text view but not
>>for displaying it on Monitor but for printing it to printer. I think
>>that wXwidget have some HTML widget that can do this, also reportlab is
>>overkill for my project. (It is much simpler copy paste to notepad and
>>print)
>>
>>
>Last time I checked gtkhtml2 (the html widget supported in pygtk) did
>not have any support for printing...
>And yes, I believe the HTML widget for wxWidgets is able to print.
>
>Hope this helps
>Rubens
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>_______________________________________________
>pygtk mailing list pygtk at daa.com.au
>http://www.daa.com.au/mailman/listinfo/pygtk
>Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
>
More information about the pygtk
mailing list