cappy2112
unread,Nov 16, 2009, 12:03:59 AM11/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxPython-users
I am curious if any of the wx text widgets (or combinations of other
widgets) have a predictive text search feature.
( I may not be using the right terminology for this, so I will
describe)
I've looked through the wx demo projects for this feature,but didn't
see one.
I want to let the user enter a text string in a single line TextCtrl,
which will act as an accelerator for ListBox containing hundreds
(possible thousands) of text strings.
With each letter the user enters, the lines of text in the ListBox
will be displayed which start with the same letters already entered in
the single line TextCtrl.
For example, if ListBox contains the names all of the 50 states ..
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
And the user starts typing
New
I want the states starting with 'New" and all of the states following
in alphabetical order to be displayed
New Hampshire
New Jersey
New Mexico
New York
North Carolina
...
In my case, I will be searching a dictionary of hundreds of variable
names generated by a compiler, so the searching and updating the
display must be fast so the user isn't waiting to see the results.
Does such a widget combination exits, or is this more of an
application implementation issue?
If anyone has already done this, would you point me to an example?
Thanks