|
def gtkunixprint.enumerate_printers(func
, data
=None, wait
=True)
| a function to call for each printer |
| user data to pass to
func |
| if True , wait in a recursive
mainloop until all printers are enumerated; otherwise return
early |
This function is available in PyGTK 2.10 and above.
Calls the function specified by func
for
all gtkunixprint.Printer
s.
If func
returns True
, the
enumeration is stopped.
The signature of func is:
def func(printer, user_data):
where printer
is a gtkunixprint.Printer
object and user_data
is
data
. Note if data
is
not specified user_data
will not be passed to
func.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.