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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top