/usr/share/gtk-doc/html/pygtk/unixprint-functions.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtkunixprint Functions</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="unixprint-class-reference.html" title="The gtkunixprint Class Reference"><link rel="prev" href="class-gtkprintunixdialog.html" title="gtkunixprint.PrintUnixDialog"><link rel="next" href="unixprint-constants.html" title="gtkunixprint Constants"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtkunixprint Functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkprintunixdialog.html">Prev</a> </td><th width="60%" align="center">The gtkunixprint Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="unixprint-constants.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtkunixprint Functions"><a name="unixprint-functions"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtkunixprint Functions</h2><p>gtkunixprint Functions — the built-in functions of the gtkunixprint
module</p></div><div class="refsect1" title="Synopsis"><a name="id3343492"></a><h2>Synopsis</h2><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="unixprint-functions.html#function-unixprint--enumerate-printers" title="gtkunixprint.enumerate_printers">gtkunixprint.enumerate_printers</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>wait</code></strong></span><span class="initializer">=True</span></span>)</code></pre></div><div class="refsect1" title="Functions"><a name="id3045155"></a><h2>Functions</h2><div class="refsect2" title="gtkunixprint.enumerate_printers"><a name="function-unixprint--enumerate-printers"></a><h3>gtkunixprint.enumerate_printers</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtkunixprint.enumerate_printers</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>wait</code></strong></span><span class="initializer">=True</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>func</code></strong> :</span></p></td><td>a function to call for each
printer</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>data</code></strong> :</span></p></td><td>user data to pass to
<em class="parameter"><code>func</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>wait</code></strong> :</span></p></td><td>if <code class="literal">True</code>, wait in a recursive
mainloop until all printers are enumerated; otherwise return
early</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.10 and above.</p></div><p>Calls the function specified by <em class="parameter"><code>func</code></em> for
all <a class="link" href="class-gtkprinter.html" title="gtkunixprint.Printer"><code class="classname">gtkunixprint.Printer</code></a>s.
If <em class="parameter"><code>func</code></em> returns <code class="literal">True</code>, the
enumeration is stopped.</p><p>The signature of func is:</p><pre class="programlisting">
def func(printer, user_data):
</pre><p>where <em class="parameter"><code>printer</code></em> is a <a class="link" href="class-gtkprinter.html" title="gtkunixprint.Printer"><code class="classname">gtkunixprint.Printer</code></a>
object and <em class="parameter"><code>user_data</code></em> is
<em class="parameter"><code>data</code></em>. Note if <em class="parameter"><code>data</code></em> is
not specified <em class="parameter"><code>user_data</code></em> will not be passed to
func.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkprintunixdialog.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="unixprint-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="unixprint-constants.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtkunixprint.PrintUnixDialog </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtkunixprint Constants</td></tr></table></div></body></html>
|