Very much in the spirit of Nigel Moesworth's "Self-adjusting thank you
letter"
[Source: Geoffrey Willans and Ronald Searle, How to Be Topp: A guide to
Sukcess for tiny pupils, including all there is to kno about SPACE
(London: Max Parrish, 1954).
I felt the need to create a combobox that adjusted the drop-down box
contents, according to what I typed into the textctrl. The primary
reason, to create a sub-list of CSS colour names.
I wanted to be able to get all the colours, for example, that contained
the word "blue" or "green".
I have worked on it a bit to allow you to select "startswith" or
"contained in" for the selection criteria and allowed for it to validate
or not against the "choices" provided.
I have attached 3 demo programs, in case anyone has the time or
inclination to use it, peer at it or indeed make any suggestions to
improve it, even if that means a complete rewrite.
Note: currently it is written with python3 in mind, on Linux.
A python2 version would have to use lower() rather than casefold()
and the SetToolTip would have to change slightly too.
I'd appreciate any criticism or suggestions
Regards
Rolf
selectingcombobox.py (2.39 KB)
Demo1_selectingcombobox.py (5.18 KB)
Demo2_selectingcombobox.py (1.62 KB)
Demo3_selectingcombobox.py (1.55 KB)