def OnLogConsoleModified(self, event): line_idx = self.LogConsole.LineFromPosition(event.GetPosition()) line = self.LogConsole.GetLine(line_idx) if line: result = MATIEC_ERROR_MODEL.match(line) if result is not None: self.LogConsole.MarkerAdd(line_idx, 0) event.Skip()
def SearchLineForError(self, line): if self.CTR is not None: result = MATIEC_ERROR_MODEL.match(line) if result is not None: first_line, first_column, last_line, last_column, error = result.groups() infos = self.CTR.ShowError( self.Log, (int(first_line), int(first_column)), (int(last_line), int(last_column)) )
def SearchLineForError(self, line): if self.CTR is not None: result = MATIEC_ERROR_MODEL.match(line) if result is not None: first_line, first_column, last_line, last_column, _error = result.groups() self.CTR.ShowError(self.Log, (int(first_line), int(first_column)), (int(last_line), int(last_column)))