I'm following through the wxPython tutorial, and am building a small
sample app using a toolbar. I've got it displaying icons of my own
choosing, but when the app starts up, only the top-left 1/4 of the
icon is visible. My guess at the reason for this is that there is a
default icon size, and my icons are larger than that.
how would I specify a larger size for the toolbar icons? The code
I'm using is:
toolbar.AddSimpleTool(ID_EXIT,wx.Image('images/nuvola_exit.png',
wx.BITMAP_TYPE_PNG).ConvertToBitmap(), 'Exit', '')
I see in another example a similar phrasing, with
toolbar.AddSimpleTool(ID_EXIT,wx.ArtProvider.GetBitmap(wx.ART_QUIT,
wx.ART_TOOLBAR, tsize), 'Exit', '')
In this case you can specify a size tuple. I tried that with my
phrasing, but it didn't work.
Ideas?
thanks
S
Stewart Midwinter
Please respond to stewart@midwinter.ca
Visit http://midwinter.ca or http://midtoad.org
···
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com