import gtk

from kiwi.ui.widgets.entry import Entry

entry = Entry()
entry.set_completion_strings(['apa', 'apapa', 'apbla',
                              'apppa', 'aaspa'])

win = gtk.Window()
win.connect('delete-event', gtk.main_quit)
win.add(entry)
win.show_all()

gtk.main()

@@ -1,12 +1,35 @@
+# encoding: iso-8859-1%0A
 import gtk%0A%0A
@@ -73,122 +73,474 @@
 ry%0A%0A
-entry = Entry()%0Aentry.set_completion_strings(%5B'apa', 'apapa', 'apbla',%0A                              'apppa', 'aas
+def on_entry_activate(entry):%0A    print 'You selected:', entry.get_text().encode('latin1')%0A    gtk.main_quit()%0A%0Aentry = Entry()%0Aentry.connect('activate', on_entry_activate)%0Aentry.set_completion_strings(%5B'Belo Horizonte',%0A                              u'So Carlos',%0A                              u'So Paulo',%0A                              u'Bstad',%0A                              u'rnskldsvik',%0A                              'sanca',%0A                              'sam
 pa'%5D

Extend example to include non-ASCII characters