/usr/share/gtk-doc/html/pygtk/class-gtkentrybuffer.html is in python-gtk2-doc 2.24.0-4.
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>gtk.EntryBuffer</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="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkentry.html" title="gtk.Entry"><link rel="next" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"></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">gtk.EntryBuffer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkentry.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkentrycompletion.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.EntryBuffer"><a name="class-gtkentrybuffer"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.EntryBuffer</h2><p>gtk.EntryBuffer — stores text for display in a <a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a> (new in PyGTK 2.22)</p></div><div class="refsect1" title="Synopsis"><a name="id3687285"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.EntryBuffer</span></span>:
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#constructor-gtkentrybuffer" title="Constructor">gtk.EntryBuffer</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>initial_chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_initial_chars</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--get-bytes" title="gtk.EntryBuffer.get_bytes">get_bytes</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--get-length" title="gtk.EntryBuffer.get_length">get_length</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--set-text" title="gtk.EntryBuffer.set_text">set_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--get-text" title="gtk.EntryBuffer.get_text">get_text</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--set-max-length" title="gtk.EntryBuffer.get_max_length">set_max_length</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>max_length</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--get-max-length" title="gtk.EntryBuffer.set_max_length">get_max_length</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--insert-text" title="gtk.EntryBuffer.insert_text">insert_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--delete-text" title="gtk.EntryBuffer.delete_text">delete_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--emit-inserted-text" title="gtk.EntryBuffer.emit_inserted_text">emit_inserted_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--emit-deleted-text" title="gtk.EntryBuffer.emit_deleted_text">emit_deleted_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3687691"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer">gtk.EntryBuffer</a>
</pre></div><div class="refsect1" title="gtk.EntryBuffer Properties"><a name="properties-gtkentrybuffer"></a><h2>gtk.EntryBuffer Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"length"</td><td valign="top">Read</td><td valign="top">The length (in characters) of the text in buffer. Allowed values: <=65535. Default value: 0.</td></tr><tr valign="top"><td valign="top">"max-length"</td><td valign="top">Read/Write</td><td valign="top">The maximum length (in characters) of the text in the buffer. Allowed values: <=65535. Default value: 0.</td></tr><tr valign="top"><td valign="top">"text"</td><td valign="top">Read/Write</td><td valign="top">The contents of the buffer. Default value: "".</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.EntryBuffer Signal Prototypes"><a name="signal-prototypes-gtkentrybuffer"></a><h2>gtk.EntryBuffer Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkentrybuffer.html#signal-gtkentrybuffer--deleted-text" title='The "deleted-text" gtk.EntryBuffer Signal'>deleted-text</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>buffer</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>position</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>n_chars</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtkentrybuffer.html#signal-gtkentrybuffer--inserted-text" title='The "inserted-text" gtk.EntryBuffer Signal'>inserted-text</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>buffer</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>position</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>chars</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>n_chars</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id3688036"></a><h2>Description</h2><p>The <a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a> class contains the actual text displayed in a
<a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a> widget.</p><p>A single <a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a> object can be shared by multiple
<a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a> widgets which will then share the same text content, but not the cursor
position, visibility attributes, icon etc.</p><p><a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a> may be derived from. Such a derived class might allow
text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could
integrate with an application's concept of undo/redo.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtkentrybuffer"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.EntryBuffer</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>initial_chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_initial_chars</code></strong></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>initial_chars</code></strong> :</span></p></td><td>initial buffer text, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>n_initial_chars</code></strong> :</span></p></td><td>number of characters in <em class="parameter"><code>initial_chars</code></em>, or -1.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a>.</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 constructor is available in PyGTK 2.22 and above.</p></div><p>Creates a new <a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a> object.</p></div><div class="refsect1" title="Methods"><a name="id3688247"></a><h2>Methods</h2><div class="refsect2" title="gtk.EntryBuffer.get_bytes"><a name="method-gtkentrybuffer--get-bytes"></a><h3>gtk.EntryBuffer.get_bytes</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_bytes</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the byte length of the buffer.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_bytes</code>() method retrieves the length in bytes of the buffer.
See <a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--get-length" title="gtk.EntryBuffer.get_length"><code class="methodname">gtk.EntryBuffer.get_length</code></a>().</p></div><div class="refsect2" title="gtk.EntryBuffer.get_length"><a name="method-gtkentrybuffer--get-length"></a><h3>gtk.EntryBuffer.get_length</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_length</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the number of characters in the buffer.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_length</code>() method retrieves the length in characters of the buffer.</p></div><div class="refsect2" title="gtk.EntryBuffer.set_text"><a name="method-gtkentrybuffer--set-text"></a><h3>gtk.EntryBuffer.set_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></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>chars</code></strong> :</span></p></td><td>the new text</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>n_chars</code></strong> :</span></p></td><td>the number of characters, or -1</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_text</code>() method sets the text in the buffer.</p></div><div class="refsect2" title="gtk.EntryBuffer.get_text"><a name="method-gtkentrybuffer--get-text"></a><h3>gtk.EntryBuffer.get_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_text</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the contents of the buffer.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_text</code>() method retrieves the contents of the buffer.</p></div><div class="refsect2" title="gtk.EntryBuffer.set_max_length"><a name="method-gtkentrybuffer--get-max-length"></a><h3>gtk.EntryBuffer.set_max_length</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_max_length</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>max_length</code></strong></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>max_length</code></strong> :</span></p></td><td>the maximum length of the entry buffer, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">set_max_length</code>() sets the maximum allowed length of the contents of the buffer.
If the current contents are longer than the given length, then they will be truncated to fit.</p></div><div class="refsect2" title="gtk.EntryBuffer.get_max_length"><a name="method-gtkentrybuffer--set-max-length"></a><h3>gtk.EntryBuffer.get_max_length</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_max_length</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the maximum allowed number of characters in the entry buffer, or 0 if there is no maximum.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">get_max_length</code>() method retrieves the maximum allowed length of the text in buffer.
See <a class="link" href="class-gtkentrybuffer.html#method-gtkentrybuffer--set-max-length" title="gtk.EntryBuffer.get_max_length"><code class="methodname">gtk.EntryBuffer.set_max_length</code></a>().</p></div><div class="refsect2" title="gtk.EntryBuffer.insert_text"><a name="method-gtkentrybuffer--insert-text"></a><h3>gtk.EntryBuffer.insert_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">insert_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></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>position</code></strong> :</span></p></td><td>the position at which to insert text.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>chars</code></strong> :</span></p></td><td>the text to insert into the buffer.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>n_chars</code></strong> :</span></p></td><td>the length of the text in characters, or -1.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">insert_text</code>() method inserts n_chars characters of chars into the contents of the buffer, at position position.</p></div><div class="refsect2" title="gtk.EntryBuffer.delete_text"><a name="method-gtkentrybuffer--delete-text"></a><h3>gtk.EntryBuffer.delete_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">delete_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></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>position</code></strong> :</span></p></td><td>the position at which to delete text.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>n_chars</code></strong> :</span></p></td><td>the number of characters to delete.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">delete_text</code>() method deletes a sequence of characters from the buffer. n_chars characters are deleted starting at position.
If n_chars is negative, then all characters until the end of the text are deleted. .</p></div><div class="refsect2" title="gtk.EntryBuffer.emit_inserted_text"><a name="method-gtkentrybuffer--emit-inserted-text"></a><h3>gtk.EntryBuffer.emit_inserted_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">emit_inserted_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>chars</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></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>position</code></strong> :</span></p></td><td>the position at which text was inserted.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>chars</code></strong> :</span></p></td><td>the text that was inserted.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>n_chars</code></strong> :</span></p></td><td>the number of characters inserted.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">emit_inserted_text</code>() method can be used when subclassing
<a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a>.</p></div><div class="refsect2" title="gtk.EntryBuffer.emit_deleted_text"><a name="method-gtkentrybuffer--emit-deleted-text"></a><h3>gtk.EntryBuffer.emit_deleted_text</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">emit_deleted_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>position</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>n_chars</code></strong></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>position</code></strong> :</span></p></td><td>the position at which text was deleted.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>n_chars</code></strong> :</span></p></td><td>the number of characters deleted.</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 method is available in PyGTK 2.22 and above.</p></div><p>The <code class="methodname">emit_deleted_text</code>() method can be used when subclassing
<a class="link" href="class-gtkentrybuffer.html" title="gtk.EntryBuffer"><code class="classname">gtk.EntryBuffer</code></a>.</p></div></div><div class="refsect1" title="Signals"><a name="id3689270"></a><h2>Signals</h2><div class="refsect2" title='The "deleted-text" gtk.EntryBuffer Signal'><a name="signal-gtkentrybuffer--deleted-text"></a><h3>The "deleted-text" gtk.EntryBuffer Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>buffer</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>position</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>n_chars</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></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"><em class="parameter"><code>buffer</code></em> :</span></p></td><td>the buffer that received the signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td><td>the the position the text was deleted at</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_chars</code></em> :</span></p></td><td>the number of characters that were deleted</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK> method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><p>The "activate" signal is emitted after text is deleted from the buffer.</p></div><div class="refsect2" title='The "inserted-text" gtk.EntryBuffer Signal'><a name="signal-gtkentrybuffer--inserted-text"></a><h3>The "inserted-text" gtk.EntryBuffer Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>buffer</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>position</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>chars</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>n_chars</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></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"><em class="parameter"><code>buffer</code></em> :</span></p></td><td>the buffer that received the signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td><td>the position the text was inserted at</td></tr><tr><td><p><span class="term"><em class="parameter"><code>chars</code></em> :</span></p></td><td>the text that was inserted</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_chars</code></em> :</span></p></td><td>the number of characters that were inserted</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK> method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><p>The "activate" signal is emitted after text is inserted into the buffer. </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-gtkentry.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtkentrycompletion.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Entry </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.EntryCompletion</td></tr></table></div></body></html>
|