Skip to content

Commit

Permalink
README: Improved Usage section with more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLixm committed Jul 14, 2023
1 parent 095ce09 commit 617abf8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down

0 comments on commit 617abf8

Please sign in to comment.