[pygtk] Problems printing in Win32.

Marco Antonio Islas Cruz markuz at islascruz.org
Wed Oct 17 00:49:02 WST 2007


Hi all, I have been working with PyGTK since 2 years ago (in linux), and
now Im working on a program that must run on Win32 and linux. But, Im
having  a problem, Im trying to hide the print dialog but it always
shows it. Besides, using gtk.PrintSettings.set_printer() to the default
printer isn't working, if I don't select a printer cairo cries about
invalid driver. But, if I select another and get back to the default
printer and send to print everything goes fine.

I have been looking a lot in google for some days, finding nothing. Not
even the way to get the default printer with GTK (Why it doesn't have a
get_default_printer function??

Anyway, Im getting the printername using ctypes, and using
gtk.PrinterSettings.set_printer() with the default printer name doesn't
seems to work.

For those who cares, Im using Gtk 2.10.11 and PyGTK version 2.10.4 over
Windows XP.

Thank you for your help.
-- 
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz at islascruz.org
markuz at unixmexico.org
markuz at linuxpozarica.com
marco.islas at gmail.com
islacruz at yahoo.com
http://www.islascruz.org
http://sourceforge.net/projects/gpkg/
http://www.linuxpozarica.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071016/dbd139f8/attachment.pgp


More information about the pygtk mailing list