[pygtk] how to print from pygtk?

Jakub Piotr Cłapa loc at toya.net.pl
Mon Jun 21 21:32:10 WST 2004


Ivan Brkanac 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.
>>
>>
> 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)

So maybe create a temporary text file and execute notepad on it with a 
print option? I'm pretty sure it's possible (should work for HTML as 
well). I don't use Windows so I can't provide you with more details but 
check "start /?" from console.

-- 
Regards,
Jakub Piotr Cłapa


More information about the pygtk mailing list