Hey guys I'm just starting out with wxPython and was just wandering how
to add one of the stock wx.___ icons to the first column of my 3 column
ctrl?
wx.ListCtrl doesn't support stock icons the same way that buttons and menus do (on wxGTK.) You'll need to get the images from somewhere, add them to a wx.ImageList, and then use that image list with the wx.ListCtrl as shown in the demo. There is a limited set of images provided with wxWidets via the wx.ArtProvider class. You can see that used in the demo too.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Hey guys I'm just starting out with wxPython and was just wandering how
to add one of the stock wx.___ icons to the first column of my 3 column
ctrl?
wx.ListCtrl doesn't support stock icons the same way that buttons and
menus do (on wxGTK.) You'll need to get the images from somewhere, add
them to a wx.ImageList, and then use that image list with the
wx.ListCtrl as shown in the demo. There is a limited set of images
provided with wxWidets via the wx.ArtProvider class. You can see that
used in the demo too.