How do I change the font color of a selected item in a CheckListCtrl ? For a selected item I would like the change the color of text in the accompanying text of the selected item ?
class CheckListCtrl(wx.Lis开发者_运维知识库tCtrl, CheckListCtrlMixin, ListCtrlAutoWidthMixin):
def __init__(self, parent):
wx.ListCtrl.__init__(self, parent, -1,style=wx.LC_REPORT|wx.SUNKEN_BORDER)
CheckListCtrlMixin.__init__(self)
ListCtrlAutoWidthMixin.__init__(self)
Maybe you need this:
self.list.SetItemTextColour(index, colour)
精彩评论