wxpython-wx.CheckListBox: changing item bacgkground color

M

Massi

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.
 
M

Mike

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top