View Single Post
Old Mar 9th, 2008, 5:10 PM   #5
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Re: Set application Icon wxPython

I am pretty sure those last two lines can be written like this as well (notice the self.SetIcon()):
python Syntax (Toggle Plain Text)
  1. favicon = wx.Icon('favicon.ico', wx.BITMAP_TYPE_ICO, 16, 16)
  2. self.SetIcon(favicon)
All that other code was doing was invoking an unbound member function and passing it the object to work with.
__________________
Robotics @ Maryland AUV Team - Software Lead
Game_Ender is offline   Reply With Quote