[wxPython-users] Toolbar icon problem

Christopher Barker Chris.Barker at noaa.gov
Thu Sep 20 21:09:29 PDT 2007


Regan Tackett wrote:
> Could someone tell me why the following code doesn’t show the bottom 
> part of the toolbar icons on Windows?  Almost all of the icons are shown 
> correctly, except for the very bottom of the bitmaps.  This code works 
> great on Fedora Core, and is basically a copy of the code snippet in the 
> book wXIA.  The bitmap filenames that I’m using in the code are 
> “New.bmp”, “Open.bmp”, and “Save.bmp”. 

On windows, you need to call:

wx.ToolBar.SetToolBitmapSize()

If your bitmaps aren't 16 pixels high. On GTK, it's a no-op, as you've 
seen, as GTK figures it out itself.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list