Thanks for the suggestion, Geoffroy, but it didn't do anything
different than my previous tries.
Ian
From: Geoffroy Culot <geoffroy.culot@gmail.com>
To: wxPython-users@lists.wxwidgets.org
Date: Sun, 04 Mar 2007 22:06:06 +0100
Subject: Re: [wxPython-users] Listctrl - getting rows after sorting?
Hello Ian,try this, at the end of your columnclick function ( and somewere
else ? )for row in range(0, self.listctrl.GetItemCount(), 1):
self.listctrl.SetItemBackgroundColour(row,"WHITE")
for row in range(0, self.listctrl.GetItemCount(), 2):
self.listctrl.SetItemBackgroundColour(row,"LIGHT_BLUE")Geoffroy Culot
www.elyxis.netMy ListCtrl has its rows alternating colours to make them easier to
distinguish:
···
Le dimanche 04 mars 2007 à 11:51 -0500, Ian York a écrit :
for row in range(0, self.listctrl.GetItemCount(), 2):
itm=self.listctrl.GetItem(row)
itm.SetBackgroundColour(LIGHT_BLUE)
self.listctrl.SetItem(itm)After the columns are sorted with the column sorter mixin, the colours
remain with their original assignments, i.e. they don't necessarily
alternate any more. I tried adding row-colouring to the end of
__OnColClick, hoping that would catch the rows in the proper order,
but it didn't change anything. Is there a way to do this?Thanks,
Ian
--
Ian York (iayork@gmail.com) <http://www.panix.com/~iayork/>
"-but as he was a York, I am rather inclined to suppose him a
very respectable Man." -Jane Austen, The History of England