Hi,
Following Problem:
1) no icons are displayed:
class CImageList (wxImageList):
def __init__(self):
wxImageList.__init__ (self, 16, 16)
self.Add(wxBitmap('xpm/up_dir.xpm'))
self.Add(wxBitmap('xpm/folder.xpm'))
self.Add(wxBitmap('xpm/blank.xpm'))
m_objIconList = CImageList()
self.m_pLeftPanel.m_pFileList.SetImageList(m_objIconList, wxIMAGE_LIST_SMALL)
self.m_pRightPanel.m_pFileList.SetImageList(m_objIconList, wxIMAGE_LIST_SMALL)
2) here it is ok:
self.il = wxImageList(16, 16)
self.il.Add(wxBitmap('xpm/up_dir.xpm'))
self.il.Add(wxBitmap('xpm/folder.xpm'))
self.il.Add(wxBitmap('xpm/blank.xpm'))
self.m_pLeftPanel.m_pFileList.SetImageList(self.il, wxIMAGE_LIST_SMALL)
self.m_pRightPanel.m_pFileList.SetImageList(self.il, wxIMAGE_LIST_SMALL)
Why is it so?
thank you!