(self, *args, **kwargs)
| 81 | class CodeScintilla(QsciScintilla): |
| 82 | |
| 83 | def __init__(self, *args, **kwargs): |
| 84 | super(CodeScintilla, self).__init__(*args, **kwargs) |
| 85 | self.init() |
| 86 | self.linesChanged.connect(self.onLinesChanged) |
| 87 | |
| 88 | def onLinesChanged(self): |
| 89 | self.setMarginWidth(0, self.fontMetrics().width(str(self.lines())) + 6) |