Problem with ListCtrl and making items flash - SOLVED
Craig Douglas
craig.douglas at rtkinstruments.com
Mon Oct 1 07:27:54 PDT 2007
Craig Douglas <craig.douglas <at> rtkinstruments.com> writes:
>
> Otherwise I sort the data, then do the following:
>
> self.SetItemCount(0)
> self.SetItemCount(len(self.items_to_display))
> self.RefreshItems(0, len(self.items_to_display))
>
> I think the problem lies with me setting the item count to zero, but I need
to
> do this otherwise when some items get added, or removed it doesn't
add/remove
> them properly unless i clear the items then re-display them.
>
Thought i'd just exlain the solution.
The problem was, as expected, in setting the item count to zero. My
RefreshItems line should have been:
self.RefreshItems(0, len(self.items_to_display)-1)
Which now works correctly.
More information about the wxpython-users
mailing list