ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxPython-users
wxPython-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved