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.
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|