[pygtk] which widget

Leon Bogaert leon at tim-online.nl
Thu Dec 2 06:59:34 WST 2010


Nevermind, I found this thread: http://stackoverflow.com/questions/2250477/entry-with-suggestions

So my questions now becomes: how can I (combobox)entry with suggestions and force it to be one of the entries in the ListStore?

Thanks!

Regards,
Leon

________________________________________
From: pygtk-bounces at daa.com.au [pygtk-bounces at daa.com.au] on behalf of Leon Bogaert [leon at tim-online.nl]
Sent: Wednesday, December 01, 2010 23:37
To: pygtk at daa.com.au
Subject: [pygtk] which widget

Hi all,

I'm new to gtk and I don't really know what widget to use for this case;

I have a long list of projects. At first it thought about using a combobox but I would really like the user to type the project he/she wants. And it should be "fuzzy". So it doesn't only match the first part of the string but ideally searches through some properties on an object. It should work a bit like the suggestions from Google.

I've also read up on the comboboxentry but I don't really know how I can make it so only values from the list are allowed.

Anyone know what would be the easiest way to do this?

Regards,
Leon
_______________________________________________
pygtk mailing list   pygtk at daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


More information about the pygtk mailing list