PDA

View Full Version : wxPython; How can I add icons to a wx.ListCtrl



Crazedpsyc
February 3rd, 2011, 04:42 PM
I would like some dynamically loaded icons for my dynamically added list items, and I tried the self.List.InsertImageStringItem and self.List.AssignImageList methods but neither resulted in any icons appearing. I need it to look in each folder for an icon and if there is one, stick it in the list, otherwise leave that list item without an icon. Is there any way to do this?

As a slightly related issue of little importance: Can I set colours in the list? I Tried to just set its BacgroundColour but nothing happened. (Actually, when I ran my app on a fresh ubuntu it did colour it for some reason :S)