How add image 32x32 to toolbar

hi all.
i want to put a image with size 32x32 to toolbar.
i tried with:
        ...
        bmp = wx.Image(fil,wx.BITMAP_TYPE_GIF).ConvertToBitmap()
        bmp.SetSize((32,32))
        simpleTool = toolbar.AddSimpleTool(wx.NewId(), bmp,
                "New", "Long help for 'New'")
        ...

but does not work.
Solution?

···

--
Fabio Spadaro
www.fabiospadaro.com

Hi Fabio,

Fabio Spadaro wrote:

hi all.
i want to put a image with size 32x32 to toolbar.
i tried with:
        ...
        bmp = wx.Image(fil,wx.BITMAP_TYPE_GIF).ConvertToBitmap()
        bmp.SetSize((32,32))
        simpleTool = toolbar.AddSimpleTool(wx.NewId(), bmp,
                "New", "Long help for 'New'")
        ...

but does not work.
  

toolbar.SetToolBitmapSize(wx.Size(32, 32))

Werner