【发布时间】:2012-10-17 19:27:25
【问题描述】:
Wxpython 提供了以下 api 来改变 wx.listbox 项目的颜色:
wx.ListBox.SetItemBackgroundColour(self, item, c)
和
wx.ListBox.SetItemForegroundColour(self, item, c)
由于某种原因,此功能在我的 linux 和 windows 中无法执行此操作。 有人知道为什么吗?
请注意,wx.ListBox.SetOwnBackgroundColor 可以完美运行。
【问题讨论】:
标签: python linux windows wxpython wxwidgets