[pygtk] gtkunixprint.enumerate_printers - Cant detect all printers.
Vamsi Krishna Davuluri
vamsi.davuluri at gmail.com
Mon Jun 29 22:22:42 WST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090629/7379c947/attachment.htm
More information about the pygtk
mailing list