I'm currently trying to get a wxListItem control working in wxPython 2.4-
Here's my code:
self.headerImgList = wxImageList(53, 11)
self.headerImgList.Add(self._scenarioItem)
self.list.SetImageList(self.headerImgList, wxIMAGE_LIST_NORMAL)
info = wxListItem()
info.SetMask(wxLIST_MASK_TEXT|wxLIST_MASK_FORMAT|wxLIST_MASK_IMAGE)
info.SetImage(0)
self.list.InsertColumnInfo(0, info)
I load up a bitmap as _scenarioItem, add it into the list - the list seems to
accept it fine, as beforehand it was giving me erros which I fixed. When I add
the wxListItem into the List it doesn't raise an error, but when the frame the
list is displayed on is shown, the image does not display as the column heading.
Can anyone see where I'm going wrong?
Thanks for any help you can give me,
Rob
···
--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/