def error_report(self,msg): data = msg.data self.label_status.SetForegroundColour(wx.Colour(204, 50, 50)) self.label_status.SetLabel(str(data)) self.stop_animation('') self.label_status.Wrap(300)