def __init__(self, lint, args, editor, results_iter, message): AbstractProcess.__init__(self, lint, args, editor) # self.lint = lint # self.args = args # self.editor = editor self.results_iter = results_iter self.message = message # Must be callable. # Set up styling for annotations. self.console.setAnnotationDisplay(2) self.font = Qt.QFont('Courier', 9, Qt.QFont.Normal, True) self.info = QsciStyle(-1, 'Hilite style for lint info', Qt.QColor('#222222'), Qt.QColor('#FFFFFF'), self.font) self.warning = QsciStyle(-1, 'Hilite style for lint warnings', Qt.QColor('#222222'), Qt.QColor('#FFFF44'), self.font) self.error = QsciStyle(-1, 'Hilite style for lint errors', Qt.QColor('#FFFFFF'), Qt.QColor('#EE0000'), self.font) self.severities = { 'I': self.info, 'C': self.info, 'W': self.warning, 'R': self.warning, 'E': self.error, 'F': self.error } self.connect(self, Qt.SIGNAL('results()'), self.apply_results) return
def __init__(self, lint, args, editor, results_iter, message): AbstractProcess.__init__(self, lint, args, editor) # self.lint = lint # self.args = args # self.editor = editor self.results_iter = results_iter self.message = message # Must be callable. # Set up styling for annotations. self.console.setAnnotationDisplay(2) self.font = Qt.QFont('Courier', 9, Qt.QFont.Normal, True) self.info = QsciStyle(-1, 'Hilite style for lint info', Qt.QColor('#222222'), Qt.QColor('#FFFFFF'), self.font) self.warning = QsciStyle(-1, 'Hilite style for lint warnings', Qt.QColor('#222222'), Qt.QColor('#FFFF44'), self.font) self.error = QsciStyle(-1, 'Hilite style for lint errors', Qt.QColor('#FFFFFF'), Qt.QColor('#EE0000'), self.font) self.severities = {'I':self.info, 'C':self.info, 'W':self.warning, 'R':self.warning, 'E':self.error, 'F':self.error} self.connect(self, Qt.SIGNAL('results()'), self.apply_results) return
def __init__(self, interpreter, args, console, line_edit=None, prompt=None, settings=None, history=None): AbstractProcess.__init__(self, interpreter, args, console, line_edit=line_edit, prompt=prompt, settings=settings, history=history) self.process.setProcessChannelMode(Qt.QProcess.MergedChannels) self.connect(self.process, Qt.SIGNAL("readyReadStandardOutput()"), self.readOutput) self.connect(self, Qt.SIGNAL('results()'), self.append) return