views:

161

answers:

2

Is there a widget for wxPython like the SuggestBox in Google Web Toolkit? It is basically a magic text box that can invoke some code to come up with suggestions relevant to whatever the user has entered so far. Like the search box on Google's web page.

If such a widget isn't already floating out there, I'd appreciate a sketch of how I might implement it with the existing widgets.

+3  A: 

You might want to look at Combo Box that Suggests Options.

I hope this is what you were thinking of.

RSabet
Thanks, that is close enough that I'll be able to make what I want. For anyone else reading that page, at the moment it doesn't quite work right when wxWidgets is using GTK. This page: http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3652448 has the fix.
Jay Kominek
A: 

Few years ago I made a control like this by subclassing TextCtrl. It supports HTML formating for suggestions. Here you go.

Toni Ruža