Hello Brian:
I haven't worked that much with grids, and have no idea how to work
around this, but I can confirm that I see the effect you describe on my
system. Win2K, Python 2.4.1, wxPython 2.6.1.0.
···
On 10/14/05, Brian Hook <hook_l@bookofhook.com> wrote:
Some people have asked for a code example. The easiest repro is the
Python wxDemo. Go to Controls -> ListCtrl_edit. At line 61 insert:self.SetItemBackgroundColour(0,wx.Colour(0,255,0))
self.SetItemTextColour(0,wx.Colour(255,0,0))When you run the demo you'll have red text but a default background
color instead of a green background. Reverse the order of the lines
and you'll get a green background but default text color.However, things seem to work as expected when I do
item.SetTextColour() or item.SetBackgroundColour(). So my current
guesses is that it's either an interaction with the texteditmixin or
an inconsistency between listctrl and listctrlitem when it comes to
colour handling.Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org