- working on adding line numbers to the TextPlainEdit

This commit is contained in:
Marius Stanciu
2019-11-22 11:00:39 +02:00
committed by Marius
parent 67d31982ef
commit 0aff3a6d4c
4 changed files with 9 additions and 9 deletions

View File

@@ -40,7 +40,9 @@ class TextEditor(QtWidgets.QWidget):
self.t_frame.setLayout(self.work_editor_layout)
if plain_text:
self.code_editor = FCPlainTextAreaExtended()
self.editor_class = FCTextAreaLineNumber()
self.code_editor = self.editor_class.edit
stylesheet = """
QPlainTextEdit { selection-background-color:yellow;
selection-color:black;