Toolbar Icon size change on OS X with 2.9.5.0

Hi all,

When I upgraded from wxPython 2.9.5.0.b20130318-carbon to wxPython 2.9.5.0-carbon on OS X, all of the icons in all of my toolbars got MUCH bigger.

toolbar.SetToolBitmapSize() doesn't seem to change this. toolbar.GetToolbarBitmapSize() reports a size of (16, 16), but that's not what it looks like. They appear to be at least 32 x 32, maybe even larger. Most of my icons are custom-drawn, and are 16x16 pixels in size, but a few come from the wx.ArtProvider.

Unfortunately, because of OS X's <rant>stupid stupid rigid stupid</rant> one-menu-per-application architecture, I have a couple of tools within my app that have very full toolbars on OS X and the larger icon size has really made a mess, one that I'd be very hard-pressed to overcome.

Any ideas or suggestions?

TIA,
David

Hi all,

When I upgraded from wxPython 2.9.5.0.b20130318-carbon to wxPython 2.9.5.0-carbon on OS X, all of the icons in all of my toolbars got MUCH bigger.

toolbar.SetToolBitmapSize() doesn't seem to change this. toolbar.GetToolbarBitmapSize() reports a size of (16, 16), but that's not what it looks like. They appear to be at least 32 x 32, maybe even larger. Most of my icons are custom-drawn, and are 16x16 pixels in size, but a few come from the wx.ArtProvider.

Unfortunately, because of OS X's <rant>stupid stupid rigid stupid</rant> one-menu-per-application architecture, I have a couple of tools within my app that have very full toolbars on OS X and the larger icon size has really made a mess, one that I'd be very hard-pressed to overcome.

Any ideas or suggestions?

TIA,
David

Just a further note. To demonstrate this issue, use the wxToolbar sample in the wxPython Demo. It shows icons at 24 x 24 by default. With older wx versions, you can reduce the icon size to 16 x 16 (by changing the tsize variable on line 88) and the icons get smaller. With 2.9.5.0, the icons won't go smaller than 24 x 24.

David

David Woods wrote:

Hi all,

When I upgraded from wxPython 2.9.5.0.b20130318-carbon to wxPython
2.9.5.0-carbon on OS X, all of the icons in all of my toolbars got
MUCH bigger.

toolbar.SetToolBitmapSize() doesn't seem to change this.
toolbar.GetToolbarBitmapSize() reports a size of (16, 16), but that's
not what it looks like. They appear to be at least 32 x 32, maybe even
larger. Most of my icons are custom-drawn, and are 16x16 pixels in
size, but a few come from the wx.ArtProvider.

Unfortunately, because of OS X's <rant>stupid stupid rigid
stupid</rant> one-menu-per-application architecture, I have a couple
of tools within my app that have very full toolbars on OS X and the
larger icon size has really made a mess, one that I'd be very
hard-pressed to overcome.

Any ideas or suggestions?

TIA,
David

Just a further note. To demonstrate this issue, use the wxToolbar sample
in the wxPython Demo. It shows icons at 24 x 24 by default. With older
wx versions, you can reduce the icon size to 16 x 16 (by changing the
tsize variable on line 88) and the icons get smaller. With 2.9.5.0, the
icons won't go smaller than 24 x 24.

David

I don't remember any discussions or changes that would cause something like this, but I can't say it wasn't an intentional change either. Asking about it on wx-users may turn up some more info about it.

···

--
Robin Dunn
Software Craftsman