From: Kevin A. <al...@se...> - 2002-01-03 02:59:42
|
Thanks to some code from Robin, I've updated the _setIcon method in the Background class to support additional file types for the application icon besides .ico files. This should be able to load ICONs and XPMs on both Windows and Linux, so you aren't just limited to .ico files. def _setIcon( self, aResource ) : """Set icon based on resource values""" if aResource.__dict__.has_key('icon') and aResource.icon != None: try: icon = wx.wxEmptyIcon() icon.CopyFromBitmap(wx.wxImage(aResource.icon).ConvertToBitmap()) self.SetIcon(icon) except: pass The background dialog in the resourceEditor was updated too. ka |