wxpython-wx.CheckListBox: changing item bacgkground color

Mike kyosohma at gmail.com
Mon Jan 14 13:31:36 EST 2008


On Jan 13, 9:22 am, Massi <massi_... at msn.com> wrote:
> Hi everyone! In my application (under windows) I'm using a
> wx.checklistbox. I would like the background color of an item to
> become red whenever an EVT_LISTBOX_DCLICK occurs. Is there any simple
> way to achieve it?
> Thanks in advance.

Did you try chkbox.SetBackgroundColor('SomeColor') ?

That might work, but I think that will just set the entire control's
background to the color passed in. You're welcome to give it a try,
though.

Also, I would recommend posting this query to the wxpython's user
group, which you can find at the wxPython website: www.wxpython.org

Mike



More information about the Python-list mailing list