I am using an ObjectListView in wxPython to present a few hundred to a few thousand records, each containing a character or two of text and a handful of numerical fields. I want to disable the typing search function of the ObjectListView as it is not very useful for my purposes and I want to use the keys for other things. However, I cannot work out how to disable all searching and not just shift it onto another column.
I suppose I could intercept a key press event and block the propagation, but that seems like a bit of a hack if there is a “right” way to do it.
I couldn’t find a “right” way to do this in the class docs, and blocking the event stopped accelerators in the main frame and cell editing working. However, if you bend the rules a bit, you can override
_FindByTypingand do nothing, thereby cutting out all the searching code.