console_output_qsci2.7_patch.diff
python/console/console_output.py | ||
---|---|---|
38 | 38 | |
39 | 39 |
def write(self, m): |
40 | 40 |
if self.style == "traceback": |
41 |
self.outputArea.SendScintilla(QsciScintilla.SCI_SETSTYLING, len(m), 1) |
|
41 |
self.outputArea.SendScintilla(QsciScintilla.SCI_STARTSTYLING, |
|
42 |
self.outputArea.SendScintilla(QsciScintilla.SCI_GETCURRENTPOS), |
|
43 |
31) |
|
42 | 44 |
self.outputArea.append(m) |
43 | 45 |
self.outputArea.SendScintilla(QsciScintilla.SCI_SETSTYLING, len(m), 1) |
44 | 46 |
else: |