I'm using the wxListCtrl to implement a file browswer control for a CVS
front end. I have columns for Name, Revision, Tag, etc and I want to
sort them by the appropriate field when the column is clicked on. I am
using the SortItems method with a custom compare routine as in the
wxpython demo. I was hoping to be able to access the individual fields
of the ListCtrl to get the current text value by supplying a row and
column value. It seems that it is only possible to use the
GetItemText(row) method which only allows the first column text to be
retrieved. Is there something like GetItemText(row, col) available ???
BTW, I'm using python-1.5.2 with wxPyton-2.2.0.
The demo uses a static 2 dimensional list/array to store items and does
the lookup with that. I guess I could use a similar system by creating
a dynamic 2D list to duplicate the data that gets put into the
ListCtrl. It seems like a waste of memory to do this, especially if
there were _lots_ of data.
If wxWindows or wxPython does not support getting text values for any
row/col, do you think this will be supported in the near future ?
Thanks for any hints, suggestions or advice,
Brendan Simon.
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users
Hello Brendan,
Sunday, November 05, 2000, 2:55:15 AM, you wrote:
I'm using the wxListCtrl to implement a file browswer control for a CVS
front end. I have columns for Name, Revision, Tag, etc and I want to
sort them by the appropriate field when the column is clicked on. I am
using the SortItems method with a custom compare routine as in the
wxpython demo. I was hoping to be able to access the individual fields
of the ListCtrl to get the current text value by supplying a row and
column value. It seems that it is only possible to use the
GetItemText(row) method which only allows the first column text to be
retrieved. Is there something like GetItemText(row, col) available ???
BTW, I'm using python-1.5.2 with wxPyton-2.2.0.
The demo uses a static 2 dimensional list/array to store items and does
the lookup with that. I guess I could use a similar system by creating
a dynamic 2D list to duplicate the data that gets put into the
ListCtrl. It seems like a waste of memory to do this, especially if
there were _lots_ of data.
If wxWindows or wxPython does not support getting text values for any
row/col, do you think this will be supported in the near future ?
There is huge performance hit when sorting and using gettext. It's
impractical for large lists.
···
--
regards,
Niki
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users