<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: PyGTK - EntryMultiCompletion</title>
	<atom:link href="http://www.oluyede.org/blog/2005/04/25/pygtk-entrymulticompletion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oluyede.org/blog/2005/04/25/pygtk-entrymulticompletion/</link>
	<description>Everything considered harmful</description>
	<pubDate>Sun, 12 Oct 2008 05:46:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Lawrence</title>
		<link>http://www.oluyede.org/blog/2005/04/25/pygtk-entrymulticompletion/#comment-13181</link>
		<dc:creator>Lawrence</dc:creator>
		<pubDate>Fri, 12 Jan 2007 09:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.oluyede.org/blog/2005/04/24/149/#comment-13181</guid>
		<description>&lt;p&gt;Have a look at the version in the FAQ. It has changed a lot: http://www.async.com.br/faq/pygtk/index.py?req=show&#38;file=faq14.024.htp&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Have a look at the version in the FAQ. It has changed a lot: <a href="http://www.async.com.br/faq/pygtk/index.py?req=show&amp;file=faq14.024.htp" rel="nofollow">http://www.async.com.br/faq/py.....14.024.htp</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Siva Chandran P</title>
		<link>http://www.oluyede.org/blog/2005/04/25/pygtk-entrymulticompletion/#comment-13169</link>
		<dc:creator>Siva Chandran P</dc:creator>
		<pubDate>Fri, 12 Jan 2007 08:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.oluyede.org/blog/2005/04/24/149/#comment-13169</guid>
		<description>&lt;p&gt;There is small issue with the code. If you complete the first word by autocomplete then it won't clear the partially typed chars. For example say you have "tea" "coffee" and "beer" as autocomplete item and if i type te then it will show the "tea" as popup. If i select the "tea" then it fills the entry by "te tea".&lt;/p&gt;

&lt;p&gt;The follow lines can be modified to solve the problem
Modify these lines 
        if ” ” in current_text:
            current_text = ” “.join(current_text.split()[:-1])&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    current_text = “%s %s” % (current_text, model[iter][0])
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if " " in current_text:
    current_text = " ".join(current_text.split()[:-1])
    current_text = "%s %s" % (current_text, model[iter][0])
else:
    current_text = model[iter][0]
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>There is small issue with the code. If you complete the first word by autocomplete then it won&#8217;t clear the partially typed chars. For example say you have &#8220;tea&#8221; &#8220;coffee&#8221; and &#8220;beer&#8221; as autocomplete item and if i type te then it will show the &#8220;tea&#8221; as popup. If i select the &#8220;tea&#8221; then it fills the entry by &#8220;te tea&#8221;.</p>

<p>The follow lines can be modified to solve the problem
Modify these lines 
        if ” ” in current_text:
            current_text = ” “.join(current_text.split()[:-1])</p>

<pre><code>    current_text = “%s %s” % (current_text, model[iter][0])
</code></pre>

<p>to</p>

<pre><code>if " " in current_text:
    current_text = " ".join(current_text.split()[:-1])
    current_text = "%s %s" % (current_text, model[iter][0])
else:
    current_text = model[iter][0]
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: learning python &#187; Blog Archive &#187; Writing a Custom Widget Using PyGTK</title>
		<link>http://www.oluyede.org/blog/2005/04/25/pygtk-entrymulticompletion/#comment-3641</link>
		<dc:creator>learning python &#187; Blog Archive &#187; Writing a Custom Widget Using PyGTK</dc:creator>
		<pubDate>Wed, 26 Jul 2006 02:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.oluyede.org/blog/2005/04/24/149/#comment-3641</guid>
		<description>&lt;p&gt;[...] The three the most useful links that I found on this subject were: A song for the lovers, the writing a widget turotial on the PyGTK website, and the widget.py example in the PyGTK cvs. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] The three the most useful links that I found on this subject were: A song for the lovers, the writing a widget turotial on the PyGTK website, and the widget.py example in the PyGTK cvs. [...]</p>]]></content:encoded>
	</item>
</channel>
</rss>
