[wxPy] Why I can not change a ListItem property?
David
71david at libero.it
Fri Dec 25 01:32:36 EST 2009
I have la ListCtrl in LC_REPORT mode and i need to change the color of a
single cell.
I tried to set the ListItem properties like this
item = wx.ListItem()
item.SetId(currId)
item.SetColumn(currCol)
item.SetText(text)
item.SetTextColour(wx.RED)
mylistctrl.SetItem(item)
but the .SetTextColor doesn't seem to do anything.
How can I change properties of a single cell?
Where can i find more detailed documentation? I read the documentation at
http://docs.wxwidgets.org/stable/wx_wxlistitem.html#wxlistitem
but I can not figure out how and when I am supposed to use the 'm_mask'
property.
TIA
David.
More information about the Python-list
mailing list