[wxPython-users] wx.ListItem.GetBackgroundColour() return (-1,-1,-1)
by Vladimir Ignatov other posts by this author
Jul 22 2004 11:41AM messages near this date
RE: [wxPython-users] Do I need another thread ?
|
Re: [wxPython-users] wx.ListItem.GetBackgroundColour() return (-1,-1,-1)
Hello!
I can't understand that wx.ListItem.GetBackgroundColour() actually return.
Consider this:
item = the_list.GetItem( row, column ) # take list item
print item.GetBackgroundColour().Get() # got (-1,-1,-1) - no colors?
what is it mean?
item.SetBackgroundColour( (2,2,2) ) # well, lets fix colors
print item.GetBackgroundColour().Get() # got my (2,2,2) back, that's okay
the_list.SetItem( item ) # write item to list
item2 = the_list.GetItem( row, column ) # take the same list item again
print item2.GetBackgroundColour().Get() # now got (-1,-1,-1) (!?)
Where is my (2,2,2) gone?
Vladimir Ignatov
Windows-2000 + Python 2.3 + wxPython 2.5.1
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thread:
Vladimir Ignatov
Robin Dunn
|