[pygtk] Custom EntryCompletion
Walter Leibbrandt
walter at translate.org.za
Tue Aug 5 20:19:58 WST 2008
Hi,
I'm trying to find a quicker way to implement auto-completion for a list
of at least 50,000 entries. I've found the "standard" way
(gtk.ListStore) to be very slow.
Is there a way I can make an EntryCompletion object call a search method
of my own (based on the text in the Entry) and display the results of
that search in the completion popup, without calling the "match_func" on
every item in a slow TreeModel? Or does anyone have a better idea to
achive this (sub-class gtk.EntryCompletion?)?
I've tried to give the EntryCompletion a dummy (empty) ListStore and
used set_match_func(match_func), but match_func() is then never called.
Any response will be greatly appreciated.
Thanks in advance,
Walter
--
Walter Leibbrandt http://translate.org.za/blogs/walter
Software Developer +27 12 460 1095 (w)
Translate.org.za
Recent blogs:
* Auto-completion and auto-correction for Gtk+ widgets
http://www.translate.org.za/blogs/walter/en/content/auto-completion-and-auto-correction-gtk-widgets
* Gtk+ Tip of the Day: Modifying the subject of an event being processed
* Spelt 0.1rc2 released
More information about the pygtk
mailing list