List Info

Thread: Re: having trouble with Toolbook




Re: having trouble with Toolbook
country flaguser name
United States
2007-10-19 15:41:24
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-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )