Setting selection background in ListCtrl

丶灬走出姿态 提交于 2019-12-25 08:51:32

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/22624070/setting-selection-background-in-listctrl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!