Discussion:
DataViewModel: correct Variant for DataViewIconText column?
d***@gmail.com
2014-09-10 11:17:29 UTC
Permalink
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.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nathan McCorkle
2014-09-10 17:14:43 UTC
Permalink
Maybe this comment is relevant:
http://osdir.com/ml/wxpython-users/2012-04/msg00359.html


Also, have you checked the *DVC_DataViewModel *demo? It might provide some
help.
https://github.com/crankycoder/wxPython-2.9.2.4/blob/master/wxPython/demo/DVC_DataViewModel.py
Post by d***@gmail.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.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dario Giovannetti
2014-09-14 10:59:10 UTC
Permalink
Post by Nathan McCorkle
http://osdir.com/ml/wxpython-users/2012-04/msg00359.html
Also, have you checked the /DVC_DataViewModel /demo? It might provide
some help.
https://github.com/crankycoder/wxPython-2.9.2.4/blob/master/wxPython/demo/DVC_DataViewModel.py
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.
--
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
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
<https://groups.google.com/d/msg/wxpython-users/4nsv7x1DE-s/ljQHl9RTnuEJ>
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...