def onSendFailed(self, reason, line): """Called if a send failed""" wx.MessageBox(str(reason), 'Could not send %s' % line, wx.OK|wx.ICON_ERROR, self) # Event handlers for net framework