def _set_icon(self, icon=None):
if icon is not None:<EOL><INDENT>try:<EOL><INDENT>wx_icon = wx.Icon(icon, wx.BITMAP_TYPE_ICO)<EOL>self.wx_obj.SetIcon(wx_icon)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Set icon based on resource values