Search code examples
pythonwxpythonwxwidgets

Setting selection background in ListCtrl


I'm trying to set a custom background for selected items in wxPython 2.8. I cannot figure out how to do so. I've tried SetItemBackground with no luck.


Solution

  • Selected items in wxListCtrl, wxListBox and so on always use the system background selection colour, it can't be changed.