~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtkentrycompletion.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.EntryCompletion</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" 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-gtkeventbox.html" title="gtk.EventBox"></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.EntryCompletion</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-gtkeventbox.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkentrycompletion"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.EntryCompletion</h2><p>gtk.EntryCompletion — completion
2
2
    functionality for <a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a> (new in
3
 
    PyGTK 2.4)</p></div><div class="refsect1" lang="en"><a name="id3458738"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.EntryCompletion</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>, <span class="ooclass"><span class="classname"><a class="link" href="class-gtkcelllayout.html" title="gtk.CellLayout">gtk.CellLayout</a></span></span>):
4
 
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#constructor-gtkentrycompletion" title="Constructor">gtk.EntryCompletion</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-entry" title="gtk.EntryCompletion.get_entry">get_entry</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-model" title="gtk.EntryCompletion.set_model">set_model</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>model</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-model" title="gtk.EntryCompletion.get_model">get_model</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-match-func" title="gtk.EntryCompletion.set_match_func">set_match_func</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func_data</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-minimum-key-length" title="gtk.EntryCompletion.set_minimum_key_length">set_minimum_key_length</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>length</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-minimum-key-length" title="gtk.EntryCompletion.get_minimum_key_length">get_minimum_key_length</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--complete" title="gtk.EntryCompletion.complete">complete</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-action-text" title="gtk.EntryCompletion.insert_action_text">insert_action_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-action-markup" title="gtk.EntryCompletion.insert_action_markup">insert_action_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--delete-action" title="gtk.EntryCompletion.delete_action">delete_action</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-prefix" title="gtk.EntryCompletion.insert_prefix">insert_prefix</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-text-column" title="gtk.EntryCompletion.set_text_column">set_text_column</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-text-column" title="gtk.EntryCompletion.get_text_column">get_text_column</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-inline-completion" title="gtk.EntryCompletion.set_inline_completion">set_inline_completion</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>inline_completion</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-inline-completion" title="gtk.EntryCompletion.get_inline_completion">get_inline_completion</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-inline-completion" title="gtk.EntryCompletion.set_inline_completion">set_inline_selection</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>inline_selection</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-inline-completion" title="gtk.EntryCompletion.get_inline_completion">get_inline_selection</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-popup-completion" title="gtk.EntryCompletion.set_popup_completion">set_popup_completion</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>popup_completion</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-popup-completion" title="gtk.EntryCompletion.get_popup_completion">get_popup_completion</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-popup-set-width" title="gtk.EntryCompletion.set_popup_set_width">set_popup_set_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>popup_set_width</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-popup-set-width" title="gtk.EntryCompletion.get_popup_set_width">get_popup_set_width</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-popup-single-match" title="gtk.EntryCompletion.set_popup_single_match">set_popup_single_match</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>popup_single_match</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-popup-single-match" title="gtk.EntryCompletion.get_popup_completion">get_popup_single_match</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3459397"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
3
    PyGTK 2.4)</p></div><div class="refsect1" lang="en"><a name="id3659544"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.EntryCompletion</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>, <span class="ooclass"><span class="classname"><a class="link" href="class-gtkcelllayout.html" title="gtk.CellLayout">gtk.CellLayout</a></span></span>):
 
4
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#constructor-gtkentrycompletion" title="Constructor">gtk.EntryCompletion</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-entry" title="gtk.EntryCompletion.get_entry">get_entry</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-model" title="gtk.EntryCompletion.set_model">set_model</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>model</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-model" title="gtk.EntryCompletion.get_model">get_model</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-match-func" title="gtk.EntryCompletion.set_match_func">set_match_func</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func_data</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-minimum-key-length" title="gtk.EntryCompletion.set_minimum_key_length">set_minimum_key_length</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>length</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-minimum-key-length" title="gtk.EntryCompletion.get_minimum_key_length">get_minimum_key_length</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--complete" title="gtk.EntryCompletion.complete">complete</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-action-text" title="gtk.EntryCompletion.insert_action_text">insert_action_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-action-markup" title="gtk.EntryCompletion.insert_action_markup">insert_action_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--delete-action" title="gtk.EntryCompletion.delete_action">delete_action</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>index</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-prefix" title="gtk.EntryCompletion.insert_prefix">insert_prefix</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-text-column" title="gtk.EntryCompletion.set_text_column">set_text_column</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>column</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-text-column" title="gtk.EntryCompletion.get_text_column">get_text_column</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-inline-completion" title="gtk.EntryCompletion.set_inline_completion">set_inline_completion</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>inline_completion</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-inline-completion" title="gtk.EntryCompletion.get_inline_completion">get_inline_completion</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-inline-completion" title="gtk.EntryCompletion.set_inline_completion">set_inline_selection</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>inline_selection</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-inline-completion" title="gtk.EntryCompletion.get_inline_completion">get_inline_selection</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-popup-completion" title="gtk.EntryCompletion.set_popup_completion">set_popup_completion</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>popup_completion</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-popup-completion" title="gtk.EntryCompletion.get_popup_completion">get_popup_completion</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-popup-set-width" title="gtk.EntryCompletion.set_popup_set_width">set_popup_set_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>popup_set_width</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-popup-set-width" title="gtk.EntryCompletion.get_popup_set_width">get_popup_set_width</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--set-popup-single-match" title="gtk.EntryCompletion.set_popup_single_match">set_popup_single_match</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>popup_single_match</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--get-popup-single-match" title="gtk.EntryCompletion.get_popup_completion">get_popup_single_match</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3660203"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
5
5
  +-- <a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion">gtk.EntryCompletion</a>
6
 
</pre></div><div class="refsect1" lang="en"><a name="id3459424"></a><h2>Implemented Interfaces</h2><p>
 
6
</pre></div><div class="refsect1" lang="en"><a name="id3660230"></a><h2>Implemented Interfaces</h2><p>
7
7
                        <a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"><code class="classname">gtk.EntryCompletion</code></a>
8
8
                        implements 
9
9
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
26
26
              <code class="literal">True</code>. Available in GTK+ 2.8 and
27
27
              above.</td></tr><tr valign="top"><td valign="top">"text-column"</td><td valign="top">Read-Write</td><td valign="top">The column of the model containing the strings. Allowed
28
28
              values: &gt;= -1. Default value: -1. Available in GTK+ 2.6 and
29
 
              above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkentrycompletion"></a><h2>gtk.EntryCompletion 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-gtkentrycompletion.html#signal-gtkentrycompletion--action-activated" title='The "action-activated" gtk.EntryCompletion Signal'>action-activated</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>index</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-gtkentrycompletion.html#signal-gtkentrycompletion--cursor-on-match" title='The "cursor-on-match" gtk.EntryCompletion Signal'>cursor_on_match</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>model</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>iter</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-gtkentrycompletion.html#signal-gtkentrycompletion--insert-prefix" title='The "insert-prefix" gtk.EntryCompletion Signal'>insert-prefix</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>prefix</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-gtkentrycompletion.html#signal-gtkentrycompletion--match-selected" title='The "match-selected" gtk.EntryCompletion Signal'>match-selected</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>model</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>iter</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" lang="en"><a name="id3460069"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p><a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"><code class="classname">gtk.EntryCompletion</code></a>
 
29
              above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkentrycompletion"></a><h2>gtk.EntryCompletion 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-gtkentrycompletion.html#signal-gtkentrycompletion--action-activated" title='The "action-activated" gtk.EntryCompletion Signal'>action-activated</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>index</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-gtkentrycompletion.html#signal-gtkentrycompletion--cursor-on-match" title='The "cursor-on-match" gtk.EntryCompletion Signal'>cursor_on_match</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>model</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>iter</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-gtkentrycompletion.html#signal-gtkentrycompletion--insert-prefix" title='The "insert-prefix" gtk.EntryCompletion Signal'>insert-prefix</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>prefix</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-gtkentrycompletion.html#signal-gtkentrycompletion--match-selected" title='The "match-selected" gtk.EntryCompletion Signal'>match-selected</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>model</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>iter</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" lang="en"><a name="id3660876"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p><a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"><code class="classname">gtk.EntryCompletion</code></a>
30
30
    is an auxiliary object to be used in conjunction with <a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a> to
31
31
    provide completion functionality. It implements the <a class="link" href="class-gtkcelllayout.html" title="gtk.CellLayout"><code class="classname">gtk.CellLayout</code></a>
32
32
    interface, to allow the user to add extra cells to the popup display of
70
70
    <a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--insert-action-markup" title="gtk.EntryCompletion.insert_action_markup"><code class="methodname">insert_action_markup</code>()</a>
71
71
    and <a class="link" href="class-gtkentrycompletion.html#method-gtkentrycompletion--delete-action" title="gtk.EntryCompletion.delete_action"><code class="methodname">delete_action</code>()</a>
72
72
    methods.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkentrycompletion"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.EntryCompletion</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>A newly created <a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"><code class="classname">gtk.EntryCompletion</code></a> object.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.4 and above.</p></div><p>Creates a new <a class="link" href="class-gtkentrycompletion.html" title="gtk.EntryCompletion"><code class="classname">gtk.EntryCompletion</code></a>
73
 
object.</p></div><div class="refsect1" lang="en"><a name="id3460388"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkentrycompletion--get-entry"></a><h3>gtk.EntryCompletion.get_entry</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_entry</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 <a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a>
 
73
object.</p></div><div class="refsect1" lang="en"><a name="id3661194"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkentrycompletion--get-entry"></a><h3>gtk.EntryCompletion.get_entry</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_entry</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 <a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a>
74
74
          that the completion is attached to.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_entry</code>() method retrieves the
75
75
<a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a> that
76
76
the entry completion is attached to.</p></div><div class="refsect2" lang="en"><a name="method-gtkentrycompletion--set-model"></a><h3>gtk.EntryCompletion.set_model</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_model</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>model</code></strong></span><span class="initializer">=None</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>model</code></strong> :</span></p></td><td>The <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
195
195
window should appear even for a single match.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.8 and above.</p></div><p>The <code class="methodname">get_popup_single_match</code>() method
196
196
returns the value of the "popup-single-match" property. If the value of
197
197
"popup-single-match" property is <code class="literal">True</code> the completions
198
 
popup window should appear even for a single match.</p></div></div><div class="refsect1" lang="en"><a name="id3462705"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkentrycompletion--action-activated"></a><h3>The "action-activated" gtk.EntryCompletion Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>index</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>completion</code></em> :</span></p></td><td>the entry completion that received the
 
198
popup window should appear even for a single match.</p></div></div><div class="refsect1" lang="en"><a name="id3663512"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkentrycompletion--action-activated"></a><h3>The "action-activated" gtk.EntryCompletion Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>completion</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>index</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>completion</code></em> :</span></p></td><td>the entry completion that received the
199
199
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td><td>the index of the action item that was
200
200
          activated.</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
201
201
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>