开发者

Changing the font color of a accompanying text item in a CheckListCtrl?

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜