Re: [Boa Constr] Program Icon
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2002-03-08 03:57:57
|
Hello Javier, "Leazen ." wrote: > > I am sorry if this is a stupid question but I can't set the icon (the one at > the NW corner) of the windows from the IDE though I found a property called > "icon". I guess I just don't know how to use it. The property editor for the Icon has not been written yet, sorry. It should be a simple extension of a normal bitmap property editor. > > Could some one please tell me how to set this property? add this line in your __init__ method: self.SetIcon(wxIcon('path/to/icon.ico', wxBITMAP_TYPE_ICO)) > > Oh, and can I have the icon in PNG or must it be a .ico? Must be an .ico file. That's why it can't just be set by a normal bitmap property editor. > > Thanks, > Javier > |