开发者

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

开发者 https://www.devze.com 2023-04-10 17:17 出处:网络
How do I change the font color of a selecteditem in a CheckListCtrl ?For a selected item I would like the change the color of text in the accompanying text of the selected item ?

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

精彩评论

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

关注公众号