I've got Icons.py file, stacked with icons (.png) from img2py and I
want to use those icons in a wx.Listbook. Here is the relevant code,
which resides in __init__:
···
------------------
self.icons = wx.ImageList(32, 32)
bmp = Icons.getstatsBitmap()
id = self.icons.Add(bmp)
self.AssignImageList(self.icons)
self.stats = StatsPanel(self)
self.AddPage(self.stats, 'Stats', id)
------------------
When I run it, the Listbook shows up, and everything work OK, I can
switch pages, except there is no icon where it is supposed to be, just
the text 'Stats' shows up. Icons.py is generated with simple:
img2py.py -a stats.png Icons.py
Any ideas what I'm doing wrong?
--
Karlo Lozovina -- Mosor
"Parce mihi domine quia Dalmata sum."