This question follows and is related to these ones:
https://groups.google.com/d/msg/wxpython-users/1sUPp766uXU/0J22mUrkzoAJ
https://groups.google.com/d/msg/wxpython-users/QvSesrnD38E/31l8f6AzIhAJ
The DataViewCtrl on GTK uses the native widget, which has a “live” search feature accessed through Ctrl+f. I’d like to disable it because it works only if the first column has pure string items, which is not my case.
I’ve noticed that returning any other value than “string” from the DataViewModel’s GetColumnType method, the search feature gets disabled.
Now, the first (and only) column in my DataViewCtrl is rendered with a custom renderer, and instead of trying to figure out what would be the correct value to return from the DataViewModel’s GetColumnType method, I’ve noticed that whatever I return (besides “string”), the control works flawlessly as I’d expect.
My question is: are there any problems happening (which I can’t see) if I return a generic value (e.g. None) from the DataViewModel’s GetColumnType method, or can I do it safely?
My system:
wxPython 3.0.0.0
wxGTK 3.0.1
GTK 2.24.24
Arch Linux x86_64
Thank you