python - Wxpython - setting background color of a listctrl of a CELL, not of the entire row -


Is it possible to set the background color of the cell in a wxpython listctrl object? I found SetItemTextColour () and SetItemBackgroundColour () but both change the color for the entire line.

Any thoughts? Thanks!

You want to switch to UltimateListCtrl to achieve your goals, For example, to complete your goals, see their sample's single-cellular background adjustment. You can also checkout AGW for more information and updated version.

wx.lib.agw import from ultimatelistctrl as ulc

self.uListCtrl = ulc.UltimateListCtrl (auto, -1, AgwStyle = ulc.ULC_REPORT | ulc.ULC_SINGLE_SEL) < / P>

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -