[wxPython-users] Re: Setting icons
by Philipp Jocham other posts by this author
Dec 7 2004 6:01PM messages near this date
[wxPython-users] Setting icons
|
Re: [wxPython-users] Re: Setting icons
On Sat, 04 Dec 2004 12:53:17 +0100, Alexander 'boesi' Bösecke wrote:
> Hi
>
> I want to set different sized icons for my app.
>
> And finally my question: *g*
> Is there a way to use ICO-files in different sizes?
I use the following approach, where icon.ico contains all sizes:
icons = wx.IconBundle()
for sz in [16, 32, 48]:
try:
icon = wx.Icon('icon.ico', wx.BITMAP_TYPE_ICO,
desiredWidth=sz, desiredHeight=sz)
icons.AddIcon(icon)
except:
pass
frame.SetIcons(icons)
cu, Philipp
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thread:
Alexander 'boesi' =?ISO-8859-1?Q?B=F6secke?=
Philipp Jocham
Alexander 'boesi' =?ISO-8859-1?Q?B=F6secke?=
Robin Dunn
|