wxListItem is implemented?

Hi!

I'd like to get wxListItem TextColour() and BackgroundColour(), but it
doesn't work. (In wxWindows docs there is wxListItem.GetTextColour() and
wxListItem.GetBackgroundColur() method. Google and ASPN archive says nothing about
it.)

I set the item's textcolour:

···

#---
itm = self.lc.GetItem(0)
itm.SetTextColour("#AA00AA")
self.lc.SetItem(itm)
#---

And then I get it:

#---
EVT_LIST_ITEM_SELECTED(self.lc, self.lc.GetId(), self.OnItemSelected)

def OnItemSelected(self, event):
  print event.GetItem().GetTextColour()
#---

It prints always (0,0,0) on MSW. Am I missed something?

Python: 2.2
wxPython: 2.3.4.2 (I tested it with 2.3.3.1 too.)
OS: Win98 SE

Thanks
  Atti

Szuts Attila wrote:

Hi!

I'd like to get wxListItem TextColour() and BackgroundColour(), but it
doesn't work. (In wxWindows docs there is wxListItem.GetTextColour() and
wxListItem.GetBackgroundColur() method. Google and ASPN archive says nothing about
it.)

I set the item's textcolour:

#---
itm = self.lc.GetItem(0)
itm.SetTextColour("#AA00AA")
self.lc.SetItem(itm)
#---

And then I get it:

#---
EVT_LIST_ITEM_SELECTED(self.lc, self.lc.GetId(), self.OnItemSelected)

def OnItemSelected(self, event):
  print event.GetItem().GetTextColour()
#---

It prints always (0,0,0) on MSW. Am I missed something?

Python: 2.2
wxPython: 2.3.4.2 (I tested it with 2.3.3.1 too.)
OS: Win98 SE

Looks like a bug. Please enter a bug report about it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!