[wxPython-users] having trouble with Toolbook
Robin Dunn
robin at alldunn.com
Fri Oct 19 11:17:56 PDT 2007
Patrick J. Anderson wrote:
> I'm having trouble with Toolbook. I can't see the image list, below is my
> code:
>
> il = wx.ImageList(22, 22)
> for i in images:
> try:
> il.AddIcon(wx.Image(i, wx.BITMAP_TYPE_PNG))
Try this instead:
il.Add(wx.Bitmap(i, wx.BITMAP_TYPE_PNG))
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list