Hi,

I don't if i'm doing this wrong, but
I can only get the 'Print To File' gtkunixprint.Printer
Listed. Here's a sample code. Even if I return a
false from the function, all I get is a loop.
Although my gtkunixprint dialog shows all the
listed printers.

import gtkunixprint
import gtk


def function(printers, data):
    print printers.get_name()
    #print data


def main():
    gtk.main()
    return 0

if __name__ == "__main__":
    gtkunixprint.enumerate_printers(function, None, True)
    main()

thanks,
Vamsi
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to