I'm quite new to wxPython, and I'm having troubles with the wxListCtrl
widget...
First, when I set the style of my list to wxLC_LIST and I do an
InsertImageString, my programs quits, without saying anything....I can't
be anything but a bug in wxWindows (I'm under Linux, so it's wxGTK).
And I'm really having troubles with these issues :
- How to modify the the text at the 3rd column of the 4th item
- What is the ItemData ?
- Is an item a cell or an entire row ?
Thanks,
Seb.
···
--
Sebastien Pierre.- spierre@rational.com \
R a t i o n a l software | XML \ If you like classical music,
. Rational Unified Process | technology \ feel free to visit
. Vancouver, B.C, -Canada | intern \ <www.costes.org>
First, when I set the style of my list to wxLC_LIST and I do an
InsertImageString, my programs quits, without saying anything....I can't
be anything but a bug in wxWindows (I'm under Linux, so it's wxGTK).
Please send a small sample that demonstrates the problem.
And I'm really having troubles with these issues :
- How to modify the the text at the 3rd column of the 4th item
I assume you are talking about wxLC_REPORT mode now...
list.SetStringItem(3, 2, "text")
- What is the ItemData ?
A value you can associate with each item that won't change when items are
sorted, etc. It gives you a way to find the current index of an item if
things have moved around, or to use as a key to some other data structure
with more info.