DataViewModel: correct Variant for DataViewIconText column?

59 views
Skip to first unread message

dario...@gmail.com

unread,
Sep 10, 2014, 7:17:29 AM9/10/14
to wxpytho...@googlegroups.com
I'm trying to understand what is the correct value to return from the GetColumnType method in a DataViewModel for a DataViewIconText column: I've tried simply "string" but that way the "live" text search (typing letters to select the first item that starts with that character) seems to work but it actually does nothing. Interestingly, any other value seems to break (or just disable?) the live search and the associated keyboard shortcuts completely.

Attached is the minimal script I'm using for testing: the commented lines can be used to compare to a simple DataViewText column.
My system is Linux/GTK 2.24.

test_dvmodel2.py

Nathan McCorkle

unread,
Sep 10, 2014, 1:14:43 PM9/10/14
to wxpytho...@googlegroups.com
Maybe this comment is relevant:


Also, have you checked the DVC_DataViewModel  demo? It might provide some help.

Dario Giovannetti

unread,
Sep 14, 2014, 6:59:21 AM9/14/14
to wxpytho...@googlegroups.com
--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/QvSesrnD38E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thank you, unfortunately none of those references has helped me, so I've scrapped the idea of using the "live" search (which by the way seems only available on wxGTK) and I've decided to use a custom renderer for the column, and to explicitly disable the search feature. About that, I've come up with a generic question which I've posted in https://groups.google.com/d/msg/wxpython-users/4nsv7x1DE-s/ljQHl9RTnuEJ
Reply all
Reply to author
Forward
0 new messages