From 617abf868ef6cb677b8febb106244461e6a22472 Mon Sep 17 00:00:00 2001 From: Liam Collod Date: Fri, 14 Jul 2023 12:31:28 +0200 Subject: [PATCH] README: Improved Usage section with more examples --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 019d46f..edab768 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,21 @@ editor = lqtTextEditor.LinePlainTextEdit() editor.setPlainText("Hello world !") ``` +Here is some options you can configure + +```python +import lqtTextEditor + +editor = lqtTextEditor.LinePlainTextEdit() +editor.setPlainText("Hello world !") +editor.set_tab_character("\t") +# lead to visual issue on the default Qt style when enabled +editor.set_alternating_row_colors(True) +# space between text and sidebar +editor.set_left_margin(15) +``` + + ## Styling With stylesheet :