No images showing up on wx.Listbook

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."

And there I was, thinking I got past beyond these rookie mistakes :(.

Thanks, a lot...

···

On 12/15/06, Robin Dunn <robin@alldunn.com> wrote:

The image ID is the 4th parameter, not the 3rd. This works:
     self.AddPage(pn, 'Test', imageId=id)

--
Karlo Lozovina -- Mosor
"Parce mihi domine quia Dalmata sum."