Re: alternate icons

hwg <[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
I have got this to work for changing the icon that appears in the title bar and in the taskbar in Windows:

import wx

class MyBackground(model.Background):
    def on_initialize(self, event):
        ib=wx.IconBundle()
        ib.AddIconFromFile("my.ico",wx.BITMAP_TYPE_ANY)
        self.SetIcons(ib)

I believe the icon has to be an icon file, not just a bitmap.  There are several freeware icon editors around.

hwg

Andy Ross <[email protected]> wrote: Hello All,

I'm working on a simple program and i was wondering if there was a way to incorporate a different picture as an icon instead of the standard icons given by wx.python. it's a bit trivial i know but i would appreciate any and all help. 

Sincerely,
Andy





-- 
Dignity? HA! What does dignity have to do with America?....? -------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users


 
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.