creating new icons for toolbar

Hello - Does anybody know what the format for icons on the

    > toolbar is? I am mostly interested in the size. When
    > reading through the files, I found that the svg versions of
    > the icons are 128 by 128 points, is that what I should shoot
    > for?

Depends on the backend, different GUIs load different icons. Here is
what I get for the PNGs

In [1]: from matplotlib.image import imread

In [2]: X = imread('images/home.png')

In [3]: X.shape
Out[3]: (24, 24, 4)

and I think that will be consistent for all the raster based image
formats. tkagg uses the ppm formats (you use tkagg, right?).

JDH

Yes, I use tkagg.
Not sure why tkagg uses ppm.
But I decipher from your message that I should use 24 by 24 points, which is
what I was thinking after opening some png files myself.
I’ll give it a shot.
Thanks, Mark

···

On 4/20/06, John Hunter <jdhunter@…4…> wrote:

> Hello - Does anybody know what the format for icons on the
> toolbar is?  I am mostly interested in the size.  When

> reading through the files, I found that the svg versions of
> the icons are 128 by 128 points, is that what I should shoot
> for?

Depends on the backend, different GUIs load different icons. Here is

what I get for the PNGs

In [1]: from matplotlib.image import imread

In [2]: X = imread(‘images/home.png’)

In [3]: X.shape
Out[3]: (24, 24, 4)

and I think that will be consistent for all the raster based image

formats. tkagg uses the ppm formats (you use tkagg, right?).

JDH