having trouble with Toolbook
Patrick J. Anderson
pat.j.anderson at gmail.com
Fri Oct 19 13:41:24 PDT 2007
On Fri, 19 Oct 2007 11:17:56 -0700, Robin Dunn wrote:
> 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))
Thanks, Robin, for your quick reply. That didn't throw an error, but I
still can't see the image list. Do I need to manually Show(it) ? I looked
at the demo, but from the code it seems like it only needs to be assigned
to a toolbook.
More information about the wxpython-users
mailing list